git-svn: Move all git-svn-related paths into $GIT_DIR/svn
[git.git] / contrib / git-svn / t / lib-git-svn.sh
1 PATH=$PWD/../:$PATH
2 if test -d ../../../t
3 then
4     cd ../../../t
5 else
6     echo "Must be run in contrib/git-svn/t" >&2
7     exit 1
8 fi
9
10 . ./test-lib.sh
11
12 GIT_DIR=$PWD/.git
13 GIT_SVN_DIR=$GIT_DIR/svn/git-svn
14 SVN_TREE=$GIT_SVN_DIR/tree
15
16 svnadmin >/dev/null 2>&1
17 if test $? != 1
18 then
19     test_expect_success 'skipping contrib/git-svn test' :
20     test_done
21     exit
22 fi
23
24 svn >/dev/null 2>&1
25 if test $? != 1
26 then
27     test_expect_success 'skipping contrib/git-svn test' :
28     test_done
29     exit
30 fi
31
32 svnrepo=$PWD/svnrepo
33
34 set -e
35
36 svnadmin create $svnrepo
37 svnrepo="file://$svnrepo/test-git-svn"
38
39