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>
This commit is contained in:
parent
b756776d19
commit
9e0ec82cac
@ -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 */
|
/* Ignore the "refs/" at the beginning of the refname */
|
||||||
ref += 5;
|
ref += 5;
|
||||||
|
|
||||||
if (strncmp(ref, "tags/", 5))
|
if (!strncmp(ref, "tags/", 5))
|
||||||
return 0;
|
add_refspec(strdup(ref));
|
||||||
|
|
||||||
add_refspec(strdup(ref));
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user