summaryrefslogtreecommitdiffstats
path: root/ls-refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-02-05 23:26:15 +0100
committerJunio C Hamano <gitster@pobox.com>2019-02-05 23:26:15 +0100
commit9c96ab987243724915fedd7ea051438b8e553e07 (patch)
treedb510f7ef3762672972dd23b2be64cda759e26a2 /ls-refs.c
parentMerge branch 'ab/commit-graph-write-progress' (diff)
parentls-refs: filter refs using namespace-stripped name (diff)
downloadgit-9c96ab987243724915fedd7ea051438b8e553e07.tar.xz
git-9c96ab987243724915fedd7ea051438b8e553e07.zip
Merge branch 'jt/namespaced-ls-refs-fix'
Fix namespace support in protocol v2. * jt/namespaced-ls-refs-fix: ls-refs: filter refs using namespace-stripped name
Diffstat (limited to 'ls-refs.c')
-rw-r--r--ls-refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ls-refs.c b/ls-refs.c
index 9c9a7c647f..0a7dbc6442 100644
--- a/ls-refs.c
+++ b/ls-refs.c
@@ -44,7 +44,7 @@ static int send_ref(const char *refname, const struct object_id *oid,
if (ref_is_hidden(refname_nons, refname))
return 0;
- if (!ref_match(&data->prefixes, refname))
+ if (!ref_match(&data->prefixes, refname_nons))
return 0;
strbuf_addf(&refline, "%s %s", oid_to_hex(oid), refname_nons);