Code

Introduce sane_unset and use it to ensure proper && chaining
[git.git] / t / t7001-mv.sh
index 65a35d94a001b555ce9e4d6c528d588339a5300b..624e6d25de0b978c839714c7abeeec563f3c42d8 100755 (executable)
@@ -61,7 +61,7 @@ test_expect_success \
 test_expect_success \
     'checking -f on untracked file with existing target' \
     'touch path0/untracked1 &&
-     git mv -f untracked1 path0
+     test_must_fail git mv -f untracked1 path0 &&
      test ! -f .git/index.lock &&
      test -f untracked1 &&
      test -f path0/untracked1'