]> git.ipfire.org Git - thirdparty/git.git/commit - connect.c
connect: annotate refs with their symref information in get_remote_head()
authorJunio C Hamano <gitster@pobox.com>
Wed, 18 Sep 2013 02:10:31 +0000 (19:10 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Sep 2013 04:58:46 +0000 (21:58 -0700)
commita45b5f0552eec3c8800edae44e071cf1d647bf96
treea66825b2ce5be27798c0cb33510c561ea657907a
parent5d54cffc36f654721302a717ff12fb317c1b494a
connect: annotate refs with their symref information in get_remote_head()

By doing this, clients of upload-pack can now reliably tell what ref
a symbolic ref points at; the updated test in t5505 used to expect
failure due to the ambiguity and made sure we give diagnostics, but
we no longer need to be so pessimistic. Make sure we correctly learn
which branch HEAD points at from the other side instead.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
connect.c
t/t5505-remote.sh