]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t2007-checkout-symlink.sh
Merge branch 'jk/diff-m-doc' into maint
[git.git] / t / t2007-checkout-symlink.sh
index 0526fce163fc13273daf035a0920a6b53a3acefb..27e2127afeeb0dd462a686254e60be74e9dd9c28 100755 (executable)
@@ -6,6 +6,12 @@ test_description='git checkout to switch between branches with symlink<->dir'
 
 . ./test-lib.sh
 
+if ! test_have_prereq SYMLINKS
+then
+       say "symbolic links not supported - skipping tests"
+       test_done
+fi
+
 test_expect_success setup '
 
        mkdir frotz &&
@@ -38,8 +44,10 @@ test_expect_success 'switch from symlink to dir' '
 
 '
 
-rm -fr frotz xyzzy nitfol &&
-git checkout -f master || exit
+test_expect_success 'Remove temporary directories & switch to master' '
+       rm -fr frotz xyzzy nitfol &&
+       git checkout -f master
+'
 
 test_expect_success 'switch from dir to symlink' '