t3020: fix typo in test description
[git/git.git] / t / t3020-ls-files-error-unmatch.sh
CommitLineData
c8af25ca
CW
1#!/bin/sh
2#
3# Copyright (c) 2006 Carl D. Worth
4#
5
5be60078 6test_description='git ls-files test for --error-unmatch option
c8af25ca 7
5be60078 8This test runs git ls-files --error-unmatch to ensure it correctly
c8af25ca
CW
9returns an error when a non-existent path is provided on the command
10line.
11'
12. ./test-lib.sh
13
14touch foo bar
5be60078 15git update-index --add foo bar
c8af25ca
CW
16git-commit -m "add foo bar"
17
18test_expect_failure \
5be60078
JH
19 'git ls-files --error-unmatch should fail with unmatched path.' \
20 'git ls-files --error-unmatch foo bar-does-not-match'
c8af25ca
CW
21
22test_expect_success \
12698478 23 'git ls-files --error-unmatch should succeed with matched paths.' \
5be60078 24 'git ls-files --error-unmatch foo bar'
c8af25ca
CW
25
26test_done
271