diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-11-07 18:19:38 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-07 18:19:38 -0800 |
commit | 53d149c54bdedd4cf490943a5478a7826c2379c9 (patch) | |
tree | 19dbbebd423d35dde5ee77dddbf567e352d2c969 /t/t7300-clean.sh | |
parent | f8b7819be98b2e7fc847639d1aef09ae0167f125 (diff) | |
parent | 562ca192f94496611583688beb3725603ce51f89 (diff) | |
download | git-53d149c54bdedd4cf490943a5478a7826c2379c9.tar.gz |
Merge branch 'jc/clean-config'
* jc/clean-config:
clean: require -f to do damage by default
Diffstat (limited to 't/t7300-clean.sh')
-rwxr-xr-x | t/t7300-clean.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index 2327436187..25d3102ded 100755 --- a/t/t7300-clean.sh +++ b/t/t7300-clean.sh @@ -7,6 +7,8 @@ test_description='git-clean basic tests' . ./test-lib.sh +git config clean.requireForce no + test_expect_success 'setup' ' mkdir -p src && @@ -244,6 +246,13 @@ test_expect_success 'git-clean -d -X' ' ' +test_expect_success 'clean.requireForce defaults to true' ' + + git config --unset clean.requireForce && + ! git-clean + +' + test_expect_success 'clean.requireForce' ' git config clean.requireForce true && |