Quote reference names while fetching with curl.
commit94fa447ace56bc6514bdd66cafe8f56f0e3ce936
authorJunio C Hamano <junkio@cox.net>
Tue, 11 Oct 2005 06:22:02 +0000 (10 23:22 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 12 Oct 2005 05:05:09 +0000 (11 22:05 -0700)
tree48fa9a3fb29727a6cc7c00f63768c6828cab4622
parentd06b689a933f6d2130f8afdf1ac0ddb83eeb59ab
Quote reference names while fetching with curl.

curl_escape ought to do this, but we should not let it quote
slashes (nobody said refs/tags cannot have subdirectories), so
we roll our own safer version.  With this, the last part of
git-clone from Martin's moodle repository that used to fail now
works, which reads:

 $ git-http-fetch -v -a -w 'tags/MOODLE_15_MERGED **INVALID**' \
   'tags/MOODLE_15_MERGED **INVALID**' \
   http://locke.catalyst.net.nz/git/moodle.git/

Signed-off-by: Junio C Hamano <junkio@cox.net>
http-fetch.c