From: Shawn Bohrer Date: Sun, 13 Apr 2008 23:49:38 +0000 (-0500) Subject: git clean: Add test to verify directories aren't removed with a prefix X-Git-Tag: v1.5.5.1~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2b6f0b0a78a713be51149f27c2c1172fe4afc9cd;p=git.git git clean: Add test to verify directories aren't removed with a prefix Signed-off-by: Shawn Bohrer Signed-off-by: Junio C Hamano --- diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index afccfc997..a50492f7c 100755 --- a/t/t7300-clean.sh +++ b/t/t7300-clean.sh @@ -75,8 +75,8 @@ test_expect_success 'git-clean src/ src/' ' test_expect_success 'git-clean with prefix' ' - mkdir -p build docs && - touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && + mkdir -p build docs src/test && + touch a.out src/part3.c docs/manual.txt obj.o build/lib.so src/test/1.c && (cd src/ && git-clean) && test -f Makefile && test -f README && @@ -84,6 +84,7 @@ test_expect_success 'git-clean with prefix' ' test -f src/part2.c && test -f a.out && test ! -f src/part3.c && + test -f src/test/1.c && test -f docs/manual.txt && test -f obj.o && test -f build/lib.so