git-svn: reduce scope of input record separator change
[gitweb.git] / t / t9100-git-svn-basic.sh
index 28082b134fd54aafa38a4ac2964fd4c367e19fa2..92a3aa8063f810bd2b8df68f3f0f30c2faf3bdc6 100755 (executable)
@@ -8,8 +8,6 @@ GIT_SVN_LC_ALL=${LC_ALL:-$LANG}
 
 . ./lib-git-svn.sh
 
-say 'define NO_SVN_TESTS to skip git svn tests'
-
 case "$GIT_SVN_LC_ALL" in
 *.UTF-8)
        test_set_prereq UTF8
@@ -19,6 +17,27 @@ case "$GIT_SVN_LC_ALL" in
        ;;
 esac
 
+deepdir=nothing-above
+ceiling=$PWD
+
+test_expect_success 'git svn --version works anywhere' '
+       mkdir -p "$deepdir" && (
+               GIT_CEILING_DIRECTORIES="$ceiling" &&
+               export GIT_CEILING_DIRECTORIES &&
+               cd "$deepdir" &&
+               git svn --version
+       )
+'
+
+test_expect_success 'git svn help works anywhere' '
+       mkdir -p "$deepdir" && (
+               GIT_CEILING_DIRECTORIES="$ceiling" &&
+               export GIT_CEILING_DIRECTORIES &&
+               cd "$deepdir" &&
+               git svn help
+       )
+'
+
 test_expect_success \
     'initialize git svn' '
        mkdir import &&