aboutsummaryrefslogtreecommitdiff
path: root/t/t7300-clean.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2007-12-05 22:28:06 -0500
committerJunio C Hamano <gitster@pobox.com>2007-12-05 22:47:45 -0800
commitd3357ab8730fdd863171b241dea10e316ed7bd05 (patch)
tree1ccc24d4951a61a13c642b0cf53c3c27367b8270 /t/t7300-clean.sh
parentd871c86935bf16fed541c7df6d1b153ca3c64496 (diff)
downloadgit-d3357ab8730fdd863171b241dea10e316ed7bd05.tar.gz
git-d3357ab8730fdd863171b241dea10e316ed7bd05.tar.xz
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>
Diffstat (limited to 't/t7300-clean.sh')
-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 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 &&