Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git clean: Add test to verify directories aren't removed with a prefix
author
Shawn Bohrer
<shawn.bohrer@gmail.com>
Sun, 13 Apr 2008 23:49:38 +0000
(18:49 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 15 Apr 2008 06:14:58 +0000
(23:14 -0700)
Signed-off-by: Shawn Bohrer <shawn.bohrer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7300-clean.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
f2d0df7
)
diff --git
a/t/t7300-clean.sh
b/t/t7300-clean.sh
index afccfc9973ba864167387b1e1caf6fe8b12f68f9..a50492f7c065d034cb344eac965d51a82cb5a599 100755
(executable)
--- 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' '
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 &&
(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/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
test -f docs/manual.txt &&
test -f obj.o &&
test -f build/lib.so