3 # Copyright (c) 2006 Carl D. Worth
6 test_description
='git ls-files test for --error-unmatch option
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
13 TEST_PASSES_SANITIZE_LEAK
=true
16 test_expect_success
'setup' '
18 git update-index --add foo bar &&
19 git commit -m "add foo bar"
23 'git ls-files --error-unmatch should fail with unmatched path.' \
24 'test_must_fail git ls-files --error-unmatch foo bar-does-not-match'
27 'git ls-files --error-unmatch should succeed with matched paths.' \
28 'git ls-files --error-unmatch foo bar'