Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2006-08-15 00:26:58 +0400
committerJunio C Hamano <junkio@cox.net>2006-08-15 05:38:07 +0400
commit9e0ec82cac84e6963d7e4aa229b7464daaed4ef8 (patch)
treefd7181496726328d94e70614f88602f21f12c38d /builtin-push.c
parentb756776d19356a961cc3d1861b15720a6d0e8462 (diff)
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>
Diffstat (limited to 'builtin-push.c')
-rw-r--r--builtin-push.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/builtin-push.c b/builtin-push.c
index 53bc378f73..c09ff2f65e 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;
}