Browse Source

builtin-push.c cleanup

Removes conditional return in builtin-push.c

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
David Rientjes 19 years ago committed by Junio C Hamano
parent
commit
9e0ec82cac
  1. 6
      builtin-push.c

6
builtin-push.c

@ -32,10 +32,8 @@ static int expand_one_ref(const char *ref, const unsigned char *sha1) @@ -32,10 +32,8 @@ static int expand_one_ref(const char *ref, const unsigned char *sha1)
/* Ignore the "refs/" at the beginning of the refname */
ref += 5;

if (strncmp(ref, "tags/", 5))
return 0;

add_refspec(strdup(ref));
if (!strncmp(ref, "tags/", 5))
add_refspec(strdup(ref));
return 0;
}


Loading…
Cancel
Save