t7300: add test for clean with wildcard pathspec
Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
d871c86935
commit
d3357ab873
@ -126,6 +126,20 @@ test_expect_success 'git-clean symbolic link' '
|
|||||||
|
|
||||||
'
|
'
|
||||||
|
|
||||||
|
test_expect_success 'git-clean with wildcard' '
|
||||||
|
|
||||||
|
touch a.clean b.clean other.c &&
|
||||||
|
git-clean "*.clean" &&
|
||||||
|
test -f Makefile &&
|
||||||
|
test -f README &&
|
||||||
|
test -f src/part1.c &&
|
||||||
|
test -f src/part2.c &&
|
||||||
|
test ! -f a.clean &&
|
||||||
|
test ! -f b.clean &&
|
||||||
|
test -f other.c
|
||||||
|
|
||||||
|
'
|
||||||
|
|
||||||
test_expect_success 'git-clean -n' '
|
test_expect_success 'git-clean -n' '
|
||||||
|
|
||||||
mkdir -p build docs &&
|
mkdir -p build docs &&
|
||||||
|
Loading…
Reference in New Issue
Block a user