]> git.ipfire.org Git - thirdparty/git.git/blame - t/t9120-git-svn-clone-with-percent-escapes.sh
git-add --intent-to-add (-N)
[thirdparty/git.git] / t / t9120-git-svn-clone-with-percent-escapes.sh
CommitLineData
8114da16
KB
1#!/bin/sh
2#
3# Copyright (c) 2008 Kevin Ballard
4#
5
6test_description='git-svn clone with percent escapes'
7. ./lib-git-svn.sh
8
f69e836f 9test_expect_success 'setup svnrepo' '
8114da16
KB
10 mkdir project project/trunk project/branches project/tags &&
11 echo foo > project/trunk/foo &&
f69e836f 12 svn import -m "$test_description" project "$svnrepo/pr ject" &&
8114da16
KB
13 rm -rf project &&
14 start_httpd
f69e836f 15'
8114da16
KB
16
17if test "$SVN_HTTPD_PORT" = ""
18then
19 test_expect_failure 'test clone with percent escapes - needs SVN_HTTPD_PORT set' 'false'
20else
21 test_expect_success 'test clone with percent escapes' '
22 git svn clone "$svnrepo/pr%20ject" clone &&
23 cd clone &&
24 git rev-parse refs/remotes/git-svn &&
25 cd ..
26 '
27fi
28
29stop_httpd
30
31test_done