Skip to content

Commit 5e7dcad

Browse files
committed
upload-pack: send non-HEAD symbolic refs
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 <[email protected]>
1 parent 7171d8c commit 5e7dcad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

upload-pack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,7 @@ static void upload_pack(void)
798798
struct string_list symref = STRING_LIST_INIT_DUP;
799799

800800
head_ref_namespaced(find_symref, &symref);
801+
for_each_namespaced_ref(find_symref, &symref);
801802

802803
if (advertise_refs || !stateless_rpc) {
803804
reset_timeout();

0 commit comments

Comments
 (0)