883d0a78d2
Since GIT_SVN_ID usage is probably going to become more widespread <evil grin>, we won't run the chance of somebody having a GIT_SVN_ID name that conflicts with one of the default directories that already exist in $GIT_DIR (branches/tags). Signed-off-by: Eric Wong <normalperson@yhbt.net>
40 lines
582 B
Bash
40 lines
582 B
Bash
PATH=$PWD/../:$PATH
|
|
if test -d ../../../t
|
|
then
|
|
cd ../../../t
|
|
else
|
|
echo "Must be run in contrib/git-svn/t" >&2
|
|
exit 1
|
|
fi
|
|
|
|
. ./test-lib.sh
|
|
|
|
GIT_DIR=$PWD/.git
|
|
GIT_SVN_DIR=$GIT_DIR/svn/git-svn
|
|
SVN_TREE=$GIT_SVN_DIR/tree
|
|
|
|
svnadmin >/dev/null 2>&1
|
|
if test $? != 1
|
|
then
|
|
test_expect_success 'skipping contrib/git-svn test' :
|
|
test_done
|
|
exit
|
|
fi
|
|
|
|
svn >/dev/null 2>&1
|
|
if test $? != 1
|
|
then
|
|
test_expect_success 'skipping contrib/git-svn test' :
|
|
test_done
|
|
exit
|
|
fi
|
|
|
|
svnrepo=$PWD/svnrepo
|
|
|
|
set -e
|
|
|
|
svnadmin create $svnrepo
|
|
svnrepo="file://$svnrepo/test-git-svn"
|
|
|
|
|