diff options
author | Jared Hance <jaredhance@gmail.com> | 2010-07-20 15:36:21 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-07-20 16:53:28 -0700 |
commit | 2c76c3fecee688f88440db4167813cc25efd0388 (patch) | |
tree | 98dfe0ab12f1e06b613188e60a1c4b949398b1d9 /t | |
parent | 07de4eba60cdf1b24f297ce2b2816d3403323352 (diff) | |
download | git-2c76c3fecee688f88440db4167813cc25efd0388.tar.gz |
Add test for git clean -e.
Signed-off-by: Jared Hance <jaredhance@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-x | t/t7300-clean.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index 7d8ed68bef..3a43571cab 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 |