mirror of
https://github.com/git/git
synced 2024-09-13 13:24:41 +00:00
show-ref: remove dead `if (verify)' check
As show_ref() is only ever called on the path where --verify is not specified, `verify' can never possibly be true here. Signed-off-by: Vladimir Panteleev <git@thecybershadow.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
d01b8203ec
commit
02bdc9d9f6
|
@ -73,9 +73,6 @@ static int show_ref(const char *refname, const struct object_id *oid,
|
||||||
continue;
|
continue;
|
||||||
if (len == reflen)
|
if (len == reflen)
|
||||||
goto match;
|
goto match;
|
||||||
/* "--verify" requires an exact match */
|
|
||||||
if (verify)
|
|
||||||
continue;
|
|
||||||
if (refname[reflen - len - 1] == '/')
|
if (refname[reflen - len - 1] == '/')
|
||||||
goto match;
|
goto match;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue