http-fetch: don't use double-slash as directory separator in URLs
authorGerrit Pape <pape@smarden.org>
Wed, 28 Mar 2007 09:46:15 +0000 (09:46 +0000)
committerJunio C Hamano <junkio@cox.net>
Wed, 28 Mar 2007 11:44:16 +0000 (04:44 -0700)
commit2afea3bcd2a2b3327d7e8bdabc9aebd6bef24c6e
treebcb30c2e8deda164d9caa391eb3b87e7dda603f5
parentfa21b6023288d5ee0afa79021493a199b1c9bac5
http-fetch: don't use double-slash as directory separator in URLs

Please see http://bugs.debian.org/409887

http-fetch expected the URL given at the command line to have a trailing
slash anyway, and then added '/objects...' when requesting objects files
from the http server.

Now it doesn't require the trailing slash in <url> anymore, and strips
trailing slashes if given nonetheless.

Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-clone.sh
git-fetch.sh
http-fetch.c