diff options
author | Junio C Hamano <junkio@cox.net> | 2006-10-02 00:47:32 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-10-02 00:47:32 -0700 |
commit | f5961572a02ef08324f297fe93b704ff2137e5a6 (patch) | |
tree | 87819ae5462ebafe6a849cf5ee3751a210d148ff /builtin-push.c | |
parent | 7c2738cefb07e6549cafa42d1d383a3bb54ed0f3 (diff) | |
parent | 6fe5b7ff6cafcc94415deba2f3d611770d8e6b1e (diff) | |
download | git-f5961572a02ef08324f297fe93b704ff2137e5a6.tar.gz |
Merge branch 'maint'
* maint:
git-push: .git/remotes/ file does not require SP after colon
git-mv: invalidate the removed path properly in cache-tree
Diffstat (limited to 'builtin-push.c')
-rw-r--r-- | builtin-push.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/builtin-push.c b/builtin-push.c index c43f2566d5..f5150ed82d 100644 --- a/builtin-push.c +++ b/builtin-push.c @@ -78,12 +78,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; |