From: Jared Hance Date: Tue, 20 Jul 2010 19:36:21 +0000 (-0400) Subject: Add test for git clean -e. X-Git-Tag: v1.7.3-rc0~71^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2c76c3fecee688f88440db4167813cc25efd0388;p=git.git Add test for git clean -e. Signed-off-by: Jared Hance Signed-off-by: Junio C Hamano --- diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index 7d8ed68be..3a43571ca 100755 --- 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