gitweb: use new Git::Repo API, and add optional caching
[git/gitweb-caching.git] / t / t3020-ls-files-error-unmatch.sh
blobaf8c4121abfc28b7e289b39936df45bd5b82cf22
1 #!/bin/sh
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
10 line.
12 . ./test-lib.sh
14 touch foo bar
15 git update-index --add foo bar
16 git-commit -m "add foo bar"
18 test_expect_success \
19 'git ls-files --error-unmatch should fail with unmatched path.' \
20 'test_must_fail git ls-files --error-unmatch foo bar-does-not-match'
22 test_expect_success \
23 'git ls-files --error-unmatch should succeed eith matched paths.' \
24 'git ls-files --error-unmatch foo bar'
26 test_done