Browse Source

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>
maint
Vladimir Panteleev 8 years ago committed by Junio C Hamano
parent
commit
02bdc9d9f6
  1. 3
      builtin/show-ref.c

3
builtin/show-ref.c

@ -73,9 +73,6 @@ static int show_ref(const char *refname, const struct object_id *oid, @@ -73,9 +73,6 @@ static int show_ref(const char *refname, const struct object_id *oid,
continue;
if (len == reflen)
goto match;
/* "--verify" requires an exact match */
if (verify)
continue;
if (refname[reflen - len - 1] == '/')
goto match;
}

Loading…
Cancel
Save