projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
a108e53
ed31df3
)
Merge branch 'ar/send-pack-remote-track' into jk/send-pack
author
Junio C Hamano
<gitster@pobox.com>
Wed, 14 Nov 2007 11:11:37 +0000
(
03:11
-0800)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 14 Nov 2007 11:11:37 +0000
(
03:11
-0800)
* ar/send-pack-remote-track:
Update the tracking references only if they were succesfully updated on remote
Add a test checking if send-pack updated local tracking branches correctly
1
2
builtin-send-pack.c
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
builtin-send-pack.c
index 947c42b95028a3a19cef45d7eafa2f4e92de651c,d56d980af7af9466cd8b13433f5fd3badadd0d98..22cb50bc2bf2767701c66afb0df5537fa89fe382
---
1
/
builtin-send-pack.c
---
2
/
send-pack.c
+++ b/
builtin-send-pack.c
@@@
-346,9
-347,10
+346,10
@@@
static int do_send_pack(int in, int out
ret = -4;
}
- if (!dry_run && remote && ret == 0) {
+ if (!
args.
dry_run && remote && ret == 0) {
for (ref = remote_refs; ref; ref = ref->next)
- update_tracking_ref(remote, ref);
+ if (!is_null_sha1(ref->new_sha1))
+ update_tracking_ref(remote, ref);
}
if (!new_refs && ret == 0)