author | Junio C Hamano <junkio@cox.net> | |
Tue, 11 Oct 2005 06:22:02 +0000 (23:22 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 12 Oct 2005 05:05:09 +0000 (22:05 -0700) | ||
commit | 94fa447ace56bc6514bdd66cafe8f56f0e3ce936 | |
tree | 48fa9a3fb29727a6cc7c00f63768c6828cab4622 | tree | snapshot |
parent | d06b689a933f6d2130f8afdf1ac0ddb83eeb59ab | commit | diff |
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>
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 | diff | blob | history |