Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-02-06 01:26:15 +0300
committerJunio C Hamano <gitster@pobox.com>2019-02-06 01:26:15 +0300
commit9c96ab987243724915fedd7ea051438b8e553e07 (patch)
treedb510f7ef3762672972dd23b2be64cda759e26a2 /ls-refs.c
parente5eac5735609722a07401a279a1508ace22fc9bc (diff)
parente2f41a0a5aaa0116c9f1463fd779ce832eb773cc (diff)
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);