File tree Expand file tree Collapse file tree 2 files changed +15
-18
lines changed Expand file tree Collapse file tree 2 files changed +15
-18
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,6 @@ test_description='git svn init/clone tests'
7
7
8
8
. ./lib-git-svn.sh
9
9
10
- # setup, run inside tmp so we don't have any conflicts with $svnrepo
11
- set -e
12
- rm -r .git
13
- mkdir tmp
14
- cd tmp
15
-
16
10
test_expect_success ' setup svnrepo' '
17
11
mkdir project project/trunk project/branches project/tags &&
18
12
echo foo > project/trunk/foo &&
Original file line number Diff line number Diff line change @@ -7,19 +7,22 @@ test_description='git svn propset tests'
7
7
8
8
. ./lib-git-svn.sh
9
9
10
- foo_subdir2=" subdir/subdir2/foo_subdir2"
10
+ test_expect_success ' setup propset via import' '
11
+ test_when_finished "rm -rf import" &&
11
12
12
- set -e
13
- mkdir import &&
14
- (set -e ; cd import
15
- mkdir subdir
16
- mkdir subdir/subdir2
17
- touch foo # for 'add props top level'
18
- touch subdir/foo_subdir # for 'add props relative'
19
- touch " $foo_subdir2 " # for 'add props subdir'
20
- svn_cmd import -m ' import for git svn' . " $svnrepo " > /dev/null
21
- )
22
- rm -rf import
13
+ foo_subdir2="subdir/subdir2/foo_subdir2" &&
14
+ mkdir -p import/subdir/subdir2 &&
15
+ (
16
+ cd import &&
17
+ # for "add props top level"
18
+ >foo &&
19
+ # for "add props relative"
20
+ >subdir/foo_subdir &&
21
+ # for "add props subdir"
22
+ >"$foo_subdir2" &&
23
+ svn_cmd import -m "import for git svn" . "$svnrepo"
24
+ )
25
+ '
23
26
24
27
test_expect_success ' initialize git svn' '
25
28
git svn init "$svnrepo"
You can’t perform that action at this time.
0 commit comments