summaryrefslogtreecommitdiff
path: root/builtin-push.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-10-02 07:43:52 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-10-02 07:43:52 (GMT)
commit6fe5b7ff6cafcc94415deba2f3d611770d8e6b1e (patch)
tree3cf56b78bdaeef96910918541b90801b71fe6975 /builtin-push.c
parent4fddf5798d8a0eb112c60a05272a2d9407eafc8f (diff)
downloadgit-6fe5b7ff6cafcc94415deba2f3d611770d8e6b1e.zip
git-6fe5b7ff6cafcc94415deba2f3d611770d8e6b1e.tar.gz
git-6fe5b7ff6cafcc94415deba2f3d611770d8e6b1e.tar.bz2
git-push: .git/remotes/ file does not require SP after colonv1.4.2.3
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>
Diffstat (limited to 'builtin-push.c')
-rw-r--r--builtin-push.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/builtin-push.c b/builtin-push.c
index 53bc378..273b27d 100644
--- a/builtin-push.c
+++ b/builtin-push.c
@@ -80,12 +80,12 @@ static int get_remotes_uri(const char *repo, const char *uri[MAX_URI])
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;