Skip to content

Commit

Permalink
upload-pack: send non-HEAD symbolic refs
Browse files Browse the repository at this point in the history
With the same mechanism as used to tell where "HEAD" points at to
the other end, we can tell the target of other symbolic refs as
well.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Sep 18, 2013
1 parent 7171d8c commit 5e7dcad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions upload-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ static void upload_pack(void)
struct string_list symref = STRING_LIST_INIT_DUP;

head_ref_namespaced(find_symref, &symref);
for_each_namespaced_ref(find_symref, &symref);

if (advertise_refs || !stateless_rpc) {
reset_timeout();
Expand Down

0 comments on commit 5e7dcad

Please sign in to comment.