Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t3020-ls-files-error-unmatch.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t3020-ls-files-error-unmatch.sh` 29 lines ยท 687 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # Copyright (c) 2006 Carl D. Worth 4 # 5 6 test_description='git ls-files test for --error-unmatch option 7 8 This test runs git ls-files --error-unmatch to ensure it correctly 9 returns an error when a non-existent path is provided on the command 10 line. 11 ' 12 13 . ./test-lib.sh 14 15 test_expect_success 'setup' ' 16 touch foo bar && 17 git update-index --add foo bar && 18 git commit -m "add foo bar" 19 ' 20 21 test_expect_success 'git ls-files --error-unmatch should fail with unmatched path.' ' 22 test_must_fail git ls-files --error-unmatch foo bar-does-not-match 23 ' 24 25 test_expect_success 'git ls-files --error-unmatch should succeed with matched paths.' ' 26 git ls-files --error-unmatch foo bar 27 ' 28 29 test_done