@matheusbsbs / matheus-bagliano / commits / 2b6f0b0a78
Fork 0

git clean: Add test to verify directories aren't removed with a prefix

Signed-off-by: Shawn Bohrer <shawn.bohrer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Shawn Bohrer committed Apr 13, 2008 at 18:49 UTC 2b6f0b0a78a713be51149f27c2c1172fe4afc9cd
1 file changed +3 -2
t/t7300-clean.sh
+3 -2
@@ -75,8 +75,8 @@ test_expect_success 'git-clean src/ src/' '
75
76 test_expect_success 'git-clean with prefix' '
77
78 - mkdir -p build docs &&
79 - touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
78 + mkdir -p build docs src/test &&
79 + touch a.out src/part3.c docs/manual.txt obj.o build/lib.so src/test/1.c &&
80 (cd src/ && git-clean) &&
81 test -f Makefile &&
82 test -f README &&
@@ -84,6 +84,7 @@ test_expect_success 'git-clean with prefix' '
84 test -f src/part2.c &&
85 test -f a.out &&
86 test ! -f src/part3.c &&
87 + test -f src/test/1.c &&
88 test -f docs/manual.txt &&
89 test -f obj.o &&
90 test -f build/lib.so