summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2007-12-06 23:43:35 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2007-12-06 23:43:35 -0800
commita43aa4cec8a0439176121567a91d23c3dfec861c (patch)
tree7ccf0bace64c15f03b81df3dbad7565a6fac0401 /t
parentautoconf: Add test for OLD_ICONV (squelching compiler warning) (diff)
parentt7300: add test for clean with wildcard pathspec (diff)
downloadtgif-a43aa4cec8a0439176121567a91d23c3dfec861c.tar.xz
Merge branch 'jc/clean-fix'
* jc/clean-fix: t7300: add test for clean with wildcard pathspec git-clean: Honor pathspec.
Diffstat (limited to 't')
-rwxr-xr-xt/t7300-clean.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh
index f013c176ed..dfd118878f 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 &&