X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3020-ls-files-error-unmatch.sh;h=ca01053bcc88806aae9abde5892b8c163b3936d0;hb=19a6cd372a998df3079d870e02c064c5bb101841;hp=f4066cbc090a8fd0f6a528eed65d16d705c1bb18;hpb=77f143bf3e218857ec8e5244d7e862e8e0c1a041;p=git.git diff --git a/t/t3020-ls-files-error-unmatch.sh b/t/t3020-ls-files-error-unmatch.sh index f4066cbc0..ca01053bc 100755 --- a/t/t3020-ls-files-error-unmatch.sh +++ b/t/t3020-ls-files-error-unmatch.sh @@ -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