From: David Rientjes Date: Mon, 14 Aug 2006 20:26:58 +0000 (-0700) Subject: builtin-push.c cleanup X-Git-Tag: v1.4.3-rc1~252 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9e0ec82cac84e6963d7e4aa229b7464daaed4ef8;p=git.git builtin-push.c cleanup Removes conditional return in builtin-push.c Signed-off-by: David Rientjes Signed-off-by: Junio C Hamano --- diff --git a/builtin-push.c b/builtin-push.c index 53bc378f7..c09ff2f65 100644 --- a/builtin-push.c +++ b/builtin-push.c @@ -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; }