mirror of
https://github.com/git/git.git
synced 2024-11-05 00:37:55 +01:00
3be7e06713
The test still passes when SVN_HTTPD_PORT is not set. Futhermore, t9115 and t9118 don't check if SVN_HTTPD_PORT is set even though they both use start_httpd() from lib-git-svn.sh. Admittedly, the test is not very meaningful without SVN_HTTPD_PORT, as commit f5530b (support for funky branch and project names over HTTP(S) 2007-11-11) states that the URI escaping is only done over HTTP(S). Signed-off-by: Stephen Boyd <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
26 lines
550 B
Bash
Executable file
26 lines
550 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# Copyright (c) 2008 Kevin Ballard
|
|
#
|
|
|
|
test_description='git svn clone with percent escapes'
|
|
. ./lib-git-svn.sh
|
|
|
|
test_expect_success 'setup svnrepo' '
|
|
mkdir project project/trunk project/branches project/tags &&
|
|
echo foo > project/trunk/foo &&
|
|
svn_cmd import -m "$test_description" project "$svnrepo/pr ject" &&
|
|
rm -rf project &&
|
|
start_httpd
|
|
'
|
|
|
|
test_expect_success 'test clone with percent escapes' '
|
|
git svn clone "$svnrepo/pr%20ject" clone &&
|
|
cd clone &&
|
|
git rev-parse refs/${remotes_git_svn} &&
|
|
cd ..
|
|
'
|
|
|
|
stop_httpd
|
|
|
|
test_done
|