summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07de4eb)
raw | patch | inline | side by side (parent: 07de4eb)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7300-clean.sh | patch | blob | history |
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
! 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