diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-11-14 12:11:37 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-14 12:11:37 +0100 |
commit | 2d4eb71c6c06e8f15351d996a9413974e15cab0b (patch) | |
tree | c0b080254cea71fbb881978f6e5b6f141efd3e11 /builtin-send-pack.c | |
parent | Merge branch 'db/remote-builtin' into jk/send-pack (diff) | |
parent | Update the tracking references only if they were succesfully updated on remote (diff) | |
download | git-2d4eb71c6c06e8f15351d996a9413974e15cab0b.tar.xz git-2d4eb71c6c06e8f15351d996a9413974e15cab0b.zip |
Merge branch 'ar/send-pack-remote-track' into jk/send-pack
* 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
Diffstat (limited to 'builtin-send-pack.c')
-rw-r--r-- | builtin-send-pack.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-send-pack.c b/builtin-send-pack.c index 947c42b950..22cb50bc2b 100644 --- a/builtin-send-pack.c +++ b/builtin-send-pack.c @@ -348,7 +348,8 @@ static int do_send_pack(int in, int out, struct remote *remote, int nr_refspec, 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) |