summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b756776)
raw | patch | inline | side by side (parent: b756776)
author | David Rientjes <rientjes@google.com> | |
Mon, 14 Aug 2006 20:26:58 +0000 (13:26 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 15 Aug 2006 01:38:07 +0000 (18:38 -0700) |
Removes conditional return in builtin-push.c
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-push.c | patch | blob | history |
diff --git a/builtin-push.c b/builtin-push.c
index 53bc378f73e752a58542a1fb8b9ddedcf9301acf..c09ff2f65e7cf1dbcee2221b7977e51f2a3bb675 100644 (file)
--- a/builtin-push.c
+++ b/builtin-push.c
/* 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;
}