summaryrefslogtreecommitdiff
path: root/ls-refs.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-06-17 10:15:15 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-06-17 10:15:15 -0700
commit86d87307c1c490282749e278380b9a258de0b46c (patch)
treeeeac81ad5d3611520950f7ac59229c2033e23fcb /ls-refs.c
parentMerge branch 'ew/server-info-remove-crufts' (diff)
parentupload-pack: strip namespace from symref data (diff)
downloadtgif-86d87307c1c490282749e278380b9a258de0b46c.tar.xz
Merge branch 'jk/HEAD-symref-in-xfer-namespaces'
The server side support for "git fetch" used to show incorrect value for the HEAD symbolic ref when the namespace feature is in use, which has been corrected. * jk/HEAD-symref-in-xfer-namespaces: upload-pack: strip namespace from symref data
Diffstat (limited to 'ls-refs.c')
-rw-r--r--ls-refs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ls-refs.c b/ls-refs.c
index 0a7dbc6442..818aef70a0 100644
--- a/ls-refs.c
+++ b/ls-refs.c
@@ -57,7 +57,8 @@ static int send_ref(const char *refname, const struct object_id *oid,
if (!symref_target)
die("'%s' is a symref but it is not?", refname);
- strbuf_addf(&refline, " symref-target:%s", symref_target);
+ strbuf_addf(&refline, " symref-target:%s",
+ strip_namespace(symref_target));
}
if (data->peel) {