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>
Jeff King committed
Dec 5, 2007 at 22:28 UTC
d3357ab8730fdd863171b241dea10e316ed7bd05
1 file changed
+14
t/t7300-clean.sh
+14
@@ -126,6 +126,20 @@ test_expect_success 'git-clean symbolic link' '
126
127
'
128
129
+test_expect_success 'git-clean with wildcard' '
130
+
131
+ touch a.clean b.clean other.c &&
132
+ git-clean "*.clean" &&
133
+ test -f Makefile &&
134
+ test -f README &&
135
+ test -f src/part1.c &&
136
+ test -f src/part2.c &&
137
+ test ! -f a.clean &&
138
+ test ! -f b.clean &&
139
+ test -f other.c
140
+
141
+'
142
+
143
test_expect_success 'git-clean -n' '
144
145
mkdir -p build docs &&