git-svn: fix cloning of HTTP URLs with '+' in their path
With this, git svn clone -s http://svn.gnome.org/svn/gtk+ is successful. Also modified the funky rename test for this, which _does_ include escaped '+' signs for HTTP URLs. SVN seems to accept either "+" or "%2B" in filenames and directories (just not the main URL), so I'll leave it alone for now. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
737922aa64
commit
d1a8d0ea5f
@ -73,11 +73,16 @@ for d in \
|
||||
done
|
||||
|
||||
start_httpd () {
|
||||
repo_base_path="$1"
|
||||
if test -z "$SVN_HTTPD_PORT"
|
||||
then
|
||||
echo >&2 'SVN_HTTPD_PORT is not defined!'
|
||||
return
|
||||
fi
|
||||
if test -z "$repo_base_path"
|
||||
then
|
||||
repo_base_path=svn
|
||||
fi
|
||||
|
||||
mkdir "$GIT_DIR"/logs
|
||||
|
||||
@ -90,13 +95,13 @@ LockFile logs/accept.lock
|
||||
Listen 127.0.0.1:$SVN_HTTPD_PORT
|
||||
LoadModule dav_module $SVN_HTTPD_MODULE_PATH/mod_dav.so
|
||||
LoadModule dav_svn_module $SVN_HTTPD_MODULE_PATH/mod_dav_svn.so
|
||||
<Location /svn>
|
||||
<Location /$repo_base_path>
|
||||
DAV svn
|
||||
SVNPath $rawsvnrepo
|
||||
</Location>
|
||||
EOF
|
||||
"$SVN_HTTPD_PATH" -f "$GIT_DIR"/httpd.conf -k start
|
||||
svnrepo=http://127.0.0.1:$SVN_HTTPD_PORT/svn
|
||||
svnrepo="http://127.0.0.1:$SVN_HTTPD_PORT/$repo_base_path"
|
||||
}
|
||||
|
||||
stop_httpd () {
|
||||
|
Reference in New Issue
Block a user