From d3357ab8730fdd863171b241dea10e316ed7bd05 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Wed, 5 Dec 2007 22:28:06 -0500 Subject: [PATCH] t7300: add test for clean with wildcard pathspec Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- t/t7300-clean.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index f013c176e..dfd118878 100755 --- a/t/t7300-clean.sh +++ b/t/t7300-clean.sh @@ -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' ' mkdir -p build docs && -- 2.30.2