Fix incorrect ref namespace check
The reason why the trailing slash is needed is obvious. refs/stash and HEAD are not namespace, but complete refs. Do full string compare on them. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
8311158c66
commit
97ba642bcf
@ -574,7 +574,7 @@ static void find_non_local_tags(struct transport *transport,
|
||||
|
||||
for_each_ref(add_existing, &existing_refs);
|
||||
for (ref = transport_get_remote_refs(transport); ref; ref = ref->next) {
|
||||
if (prefixcmp(ref->name, "refs/tags"))
|
||||
if (prefixcmp(ref->name, "refs/tags/"))
|
||||
continue;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user