aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xt/t9123-git-svn-rebuild-with-rewriteroot.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/t/t9123-git-svn-rebuild-with-rewriteroot.sh b/t/t9123-git-svn-rebuild-with-rewriteroot.sh
index ead404589e..8fa5940abe 100755
--- a/t/t9123-git-svn-rebuild-with-rewriteroot.sh
+++ b/t/t9123-git-svn-rebuild-with-rewriteroot.sh
@@ -7,12 +7,15 @@ test_description='git svn respects rewriteRoot during rebuild'
. ./lib-git-svn.sh
-mkdir import
-(cd import
- touch foo
- svn_cmd import -m 'import for git svn' . "$svnrepo" >/dev/null
-)
-rm -rf import
+test_expect_success 'setup svn repository' '
+ test_when_finished "rm -rf import" &&
+ mkdir import &&
+ (
+ cd import &&
+ touch foo &&
+ svn_cmd import -m "import for git svn" . "$svnrepo" >/dev/null
+ )
+ '
test_expect_success 'init, fetch and checkout repository' '
git svn init --rewrite-root=http://invalid.invalid/ "$svnrepo" &&