Skip to content

Commit 02bdc9d

Browse files
CyberShadowgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d01b820 commit 02bdc9d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

builtin/show-ref.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ static int show_ref(const char *refname, const struct object_id *oid,
7373
continue;
7474
if (len == reflen)
7575
goto match;
76-
/* "--verify" requires an exact match */
77-
if (verify)
78-
continue;
7976
if (refname[reflen - len - 1] == '/')
8077
goto match;
8178
}

0 commit comments

Comments
 (0)