Code

Merge branch 'maint'
[git.git] / t / t3020-ls-files-error-unmatch.sh
index f4066cbc090a8fd0f6a528eed65d16d705c1bb18..ca01053bcc88806aae9abde5892b8c163b3936d0 100755 (executable)
@@ -11,9 +11,11 @@ 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.' \
@@ -24,4 +26,3 @@ test_expect_success \
     'git ls-files --error-unmatch foo bar'
 
 test_done
-1