Squashed 'third_party/git/' content from commit cb71568594
git-subtree-dir: third_party/git git-subtree-split: cb715685942260375e1eb8153b0768a376e4ece7
This commit is contained in:
commit
1b593e1ea4
3629 changed files with 1139935 additions and 0 deletions
28
t/t3020-ls-files-error-unmatch.sh
Executable file
28
t/t3020-ls-files-error-unmatch.sh
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2006 Carl D. Worth
|
||||
#
|
||||
|
||||
test_description='git ls-files test for --error-unmatch option
|
||||
|
||||
This test runs git ls-files --error-unmatch to ensure it correctly
|
||||
returns an error when a non-existent path is provided on the command
|
||||
line.
|
||||
'
|
||||
. ./test-lib.sh
|
||||
|
||||
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.' \
|
||||
'test_must_fail git ls-files --error-unmatch foo bar-does-not-match'
|
||||
|
||||
test_expect_success \
|
||||
'git ls-files --error-unmatch should succeed with matched paths.' \
|
||||
'git ls-files --error-unmatch foo bar'
|
||||
|
||||
test_done
|
||||
Loading…
Add table
Add a link
Reference in a new issue