git-svn: allow a local target directory to be specified for init
[gitweb.git] / contrib / git-svn / t / lib-git-svn.sh
index 2843258fc478d9d18d563aa6ac3428e73e431f53..d7f972a0c8fd0163f97c2bc4cd29fe2d1e001002 100644 (file)
@@ -33,7 +33,13 @@ svnrepo=$PWD/svnrepo
 
 set -e
 
-svnadmin create $svnrepo
+if svnadmin create --help | grep fs-type >/dev/null
+then
+       svnadmin create --fs-type fsfs "$svnrepo"
+else
+       svnadmin create "$svnrepo"
+fi
+
 svnrepo="file://$svnrepo/test-git-svn"