summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4fddf57)
raw | patch | inline | side by side (parent: 4fddf57)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 2 Oct 2006 07:43:52 +0000 (00:43 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 2 Oct 2006 07:43:52 +0000 (00:43 -0700) |
Although most people would have one after colon if only for
readability, we never required it in git-parse-remote, so let's
not require one only in git-push.
Signed-off-by: Junio C Hamano <junkio@cox.net>
readability, we never required it in git-parse-remote, so let's
not require one only in git-push.
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..273b27dceab7df6f77e2c3c85981326afd0e2789 100644 (file)
--- a/builtin-push.c
+++ b/builtin-push.c
int is_refspec;
char *s, *p;
- if (!strncmp("URL: ", buffer, 5)) {
+ if (!strncmp("URL:", buffer, 4)) {
is_refspec = 0;
- s = buffer + 5;
- } else if (!strncmp("Push: ", buffer, 6)) {
+ s = buffer + 4;
+ } else if (!strncmp("Push:", buffer, 5)) {
is_refspec = 1;
- s = buffer + 6;
+ s = buffer + 5;
} else
continue;