git-push: .git/remotes/ file does not require SP after colon
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>
Junio C Hamano committed
Oct 2, 2006 at 00:43 UTC
6fe5b7ff6cafcc94415deba2f3d611770d8e6b1e
1 file changed
+4
-4
builtin-push.c
+4
-4
@@ -80,12 +80,12 @@ static int get_remotes_uri(const char *repo, const char *uri[MAX_URI])
80
int is_refspec;
81
char *s, *p;
82
83
- if (!strncmp("URL: ", buffer, 5)) {
83
+ if (!strncmp("URL:", buffer, 4)) {
84
is_refspec = 0;
85
- s = buffer + 5;
86
- } else if (!strncmp("Push: ", buffer, 6)) {
85
+ s = buffer + 4;
86
+ } else if (!strncmp("Push:", buffer, 5)) {
87
is_refspec = 1;
88
- s = buffer + 6;
88
+ s = buffer + 5;
89
} else
90
continue;
91