Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rc/maint-http-fix'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 19 Aug 2009 06:33:16 +0000
(23:33 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 19 Aug 2009 06:33:16 +0000
(23:33 -0700)
* rc/maint-http-fix:
http.c: don't assume that urls don't end with slash
http.c
patch
|
blob
|
history
raw
(from parent 1:
09ba7b2
)
diff --git
a/http.c
b/http.c
index 14d535747d943c2db3d45d82439f3ee9633ed2d9..eb0c6698013e717eda5b6005fb48666191238aab 100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-719,7
+719,9
@@
void append_remote_object_url(struct strbuf *buf, const char *url,
const char *hex,
int only_two_digit_prefix)
{
- strbuf_addf(buf, "%s/objects/%.*s/", url, 2, hex);
+ end_url_with_slash(buf, url);
+
+ strbuf_addf(buf, "objects/%.*s/", 2, hex);
if (!only_two_digit_prefix)
strbuf_addf(buf, "%s", hex+2);
}