get_cwd_relative(): do not misinterpret suffix as subdirectory
[gitweb.git] / t / t3020-ls-files-error-unmatch.sh
index f4da869932e40429f94d19a9cf2e18dc1e838f0a..a7d8187169a36f708bd7dc39d97604dd9cc21565 100755 (executable)
@@ -11,13 +11,15 @@ line.
 '
 . ./test-lib.sh
 
-touch foo bar
-git update-index --add foo bar
-git-commit -m "add foo bar"
+test_expect_success 'setup' '
+       touch foo bar &&
+       git update-index --add foo bar &&
+       git commit -m "add foo bar"
+'
 
 test_expect_success \
     'git ls-files --error-unmatch should fail with unmatched path.' \
-    '! git ls-files --error-unmatch foo bar-does-not-match'
+    'test_must_fail git ls-files --error-unmatch foo bar-does-not-match'
 
 test_expect_success \
     'git ls-files --error-unmatch should succeed eith matched paths.' \