summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cf70c16)
raw | patch | inline | side by side (parent: cf70c16)
author | Eygene Ryabinkin <rea-git@codelabs.ru> | |
Wed, 28 Feb 2007 20:12:02 +0000 (12:12 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 28 Feb 2007 20:12:02 +0000 (12:12 -0800) |
Starting from offset 11 might have been good back when it was
only used for updating "refs/heads/*", but it is used to update
"info/refs" and "refs/tags/*" as well.
Signed-off-by: Junio C Hamano <junkio@cox.net>
only used for updating "refs/heads/*", but it is used to update
"info/refs" and "refs/tags/*" as well.
Signed-off-by: Junio C Hamano <junkio@cox.net>
http-push.c | patch | blob | history |
diff --git a/http-push.c b/http-push.c
index b128c0146c6f1d8ca69d802d15d6bc778e5780a6..cec7bf7fad9ccabc55d4e72c8dfb6bbe0ad3a1be 100644 (file)
--- a/http-push.c
+++ b/http-push.c
sprintf(url, "%s%s", remote->url, path);
/* Make sure leading directories exist for the remote ref */
- ep = strchr(url + strlen(remote->url) + 11, '/');
+ ep = strchr(url + strlen(remote->url) + 1, '/');
while (ep) {
*ep = 0;
slot = get_active_slot();