Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Revert "Convert git-annotate to use Git.pm"
[gitweb.git]
/
builtin-push.c
diff --git
a/builtin-push.c
b/builtin-push.c
index 53bc378f73e752a58542a1fb8b9ddedcf9301acf..c09ff2f65e7cf1dbcee2221b7977e51f2a3bb675 100644
(file)
--- 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;
}