Skip to content

Commit

Permalink
Add test for git clean -e.
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Hance <jaredhance@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jared Hance authored and Junio C Hamano committed Jul 20, 2010
1 parent 07de4eb commit 2c76c3f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions t/t7300-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2c76c3f

Please sign in to comment.