Skip to content

Commit

Permalink
Merge branch 'rc/maint-http-fix'
Browse files Browse the repository at this point in the history
* rc/maint-http-fix:
  http.c: don't assume that urls don't end with slash
  • Loading branch information
Junio C Hamano committed Aug 19, 2009
2 parents 09ba7b2 + 800324c commit 9ebfda1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9ebfda1

Please sign in to comment.