X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft7300-clean.sh;h=7d8ed68befed0e85ad85f9f933a2b887125e38e8;hb=a031d76eebbe85c93f5d4a2a4cafacf417df9bce;hp=118c6ebb182b5cd4700e533d6a951b31529149af;hpb=0c15da68e819183fcf85f45daa25965b6fde86cc;p=git.git diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index 118c6ebb1..7d8ed68be 100755 --- a/t/t7300-clean.sh +++ b/t/t7300-clean.sh @@ -22,6 +22,25 @@ test_expect_success 'setup' ' ' +test_expect_success 'git clean with skip-worktree .gitignore' ' + git update-index --skip-worktree .gitignore && + rm .gitignore && + mkdir -p build docs && + touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && + git clean && + test -f Makefile && + test -f README && + test -f src/part1.c && + test -f src/part2.c && + test ! -f a.out && + test ! -f src/part3.c && + test -f docs/manual.txt && + test -f obj.o && + test -f build/lib.so && + git update-index --no-skip-worktree .gitignore && + git checkout .gitignore +' + test_expect_success 'git clean' ' mkdir -p build docs &&