Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Add test for git clean -e.
author
Jared Hance
<jaredhance@gmail.com>
Tue, 20 Jul 2010 19:36:21 +0000
(15:36 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 20 Jul 2010 23:53:28 +0000
(16:53 -0700)
Signed-off-by: Jared Hance <jaredhance@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:
07de4eb
)
diff --git
a/t/t7300-clean.sh
b/t/t7300-clean.sh
index 7d8ed68befed0e85ad85f9f933a2b887125e38e8..3a43571cab78bce546ca714c8d53b76fc94c6ee2 100755
(executable)
--- a/
t/t7300-clean.sh
+++ b/
t/t7300-clean.sh
@@
-438,4
+438,20
@@
test_expect_success 'force removal of nested git work tree' '
! test -d bar
'
+test_expect_success 'git clean -e' '
+ rm -fr repo &&
+ mkdir repo &&
+ (
+ cd repo &&
+ git init &&
+ touch 1 2 3 known &&
+ git add known &&
+ git clean -f -e 1 -e 2 &&
+ test -e 1 &&
+ test -e 2 &&
+ ! (test -e 3) &&
+ test -e known
+ )
+'
+
test_done