]>
Commit | Line | Data |
---|---|---|
cfbe7ab3 EW |
1 | #!/bin/sh |
2 | # | |
3 | # Copyright (c) 2007 Eric Wong | |
4 | # | |
5 | ||
6 | test_description='git-svn funky branch names' | |
7 | . ./lib-git-svn.sh | |
8 | ||
f69e836f | 9 | test_expect_success 'setup svnrepo' ' |
cfbe7ab3 EW |
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" && |
cfbe7ab3 | 13 | rm -rf project && |
f69e836f BD |
14 | svn cp -m "fun" "$svnrepo/pr ject/trunk" \ |
15 | "$svnrepo/pr ject/branches/fun plugin" && | |
16 | svn cp -m "more fun!" "$svnrepo/pr ject/branches/fun plugin" \ | |
17 | "$svnrepo/pr ject/branches/more fun plugin!" && | |
cfbe7ab3 | 18 | start_httpd |
f69e836f | 19 | ' |
cfbe7ab3 | 20 | |
f69e836f BD |
21 | test_expect_success 'test clone with funky branch names' ' |
22 | git svn clone -s "$svnrepo/pr ject" project && | |
cfbe7ab3 | 23 | cd project && |
f69e836f BD |
24 | git rev-parse "refs/remotes/fun%20plugin" && |
25 | git rev-parse "refs/remotes/more%20fun%20plugin!" && | |
cfbe7ab3 | 26 | cd .. |
f69e836f | 27 | ' |
cfbe7ab3 EW |
28 | |
29 | test_expect_success 'test dcommit to funky branch' " | |
30 | cd project && | |
31 | git reset --hard 'refs/remotes/more%20fun%20plugin!' && | |
32 | echo hello >> foo && | |
33 | git commit -m 'hello' -- foo && | |
34 | git svn dcommit && | |
35 | cd .. | |
36 | " | |
37 | ||
38 | stop_httpd | |
39 | ||
40 | test_done |