diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-07-25 14:27:09 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-25 14:27:09 -0700 |
commit | 5ca0db3fcaa46cdaa06268727a10abc438cc4af3 (patch) | |
tree | 52a90ce3cee0a154e61e79ebbf07703388a4f95e /upload-pack.c | |
parent | Merge branch 'ew/server-info-remove-crufts' into maint (diff) | |
parent | upload-pack: strip namespace from symref data (diff) | |
download | tgif-5ca0db3fcaa46cdaa06268727a10abc438cc4af3.tar.xz |
Merge branch 'jk/HEAD-symref-in-xfer-namespaces' into maint
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 'upload-pack.c')
-rw-r--r-- | upload-pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/upload-pack.c b/upload-pack.c index 24298913c0..4d2129e7fc 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -1037,8 +1037,8 @@ static int find_symref(const char *refname, const struct object_id *oid, symref_target = resolve_ref_unsafe(refname, 0, NULL, &flag); if (!symref_target || (flag & REF_ISSYMREF) == 0) die("'%s' is a symref but it is not?", refname); - item = string_list_append(cb_data, refname); - item->util = xstrdup(symref_target); + item = string_list_append(cb_data, strip_namespace(refname)); + item->util = xstrdup(strip_namespace(symref_target)); return 0; } |