Use 'repack -a -d -l' instead of 'repack -a -d' in git-gc
[git/mingw.git] / t / lib-git-svn.sh
blob99ada71349c7eaa0536bba1d622f7f7ffa56110e
1 . ./test-lib.sh
3 if test -n "$NO_SVN_TESTS"
4 then
5 test_expect_success 'skipping git-svn tests, NO_SVN_TESTS defined' :
6 test_done
7 exit
8 fi
10 perl -e 'use SVN::Core; $SVN::Core::VERSION gt "1.1.0" or die' >/dev/null 2>&1
11 if test $? -ne 0
12 then
13 test_expect_success 'Perl SVN libraries not found, skipping test' :
14 test_done
15 exit
18 GIT_DIR=$PWD/.git
19 GIT_SVN_DIR=$GIT_DIR/svn/git-svn
20 SVN_TREE=$GIT_SVN_DIR/svn-tree
22 svnadmin >/dev/null 2>&1
23 if test $? -ne 1
24 then
25 test_expect_success 'skipping git-svn tests, svnadmin not found' :
26 test_done
27 exit
30 svn >/dev/null 2>&1
31 if test $? -ne 1
32 then
33 test_expect_success 'skipping git-svn tests, svn not found' :
34 test_done
35 exit
38 svnrepo=$PWD/svnrepo
40 set -e
42 if svnadmin create --help | grep fs-type >/dev/null
43 then
44 svnadmin create --fs-type fsfs "$svnrepo"
45 else
46 svnadmin create "$svnrepo"
49 svnrepo="file://$svnrepo"