Code

Update the tracking references only if they were succesfully updated on remote
authorAlex Riesen <raa.lkml@gmail.com>
Mon, 12 Nov 2007 21:39:38 +0000 (22:39 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Nov 2007 01:50:31 +0000 (17:50 -0800)
commited31df312a30d91c288a4b6e3d031de15284405a
tree41073b1714167d9206ad0dedf0bff617fc276480
parent6fa92bf3cdbfdd8c9c56ef40a5170a859442b166
Update the tracking references only if they were succesfully updated on remote

It fixes the bug where local tracking branches were filled with zeroed
SHA-1 if the remote branch was not updated because, for instance, it
was not an ancestor of the local (i.e. had other changes).

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
send-pack.c