diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-09-08 09:17:00 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-09-08 09:17:00 -0700 |
commit | 6b948a7a480b4ad5e112eb1642e9160e2a3b4f2b (patch) | |
tree | a67164e17aaba73228e2b2aeed996e36209a57a1 /t | |
parent | 9f44723d1a2c6a97306a7160deeab621e08bea7a (diff) | |
parent | 655e8d9c92121b1d84fda91b73c4a0daa638cbf8 (diff) | |
download | git-6b948a7a480b4ad5e112eb1642e9160e2a3b4f2b.tar.gz |
Merge branch 'jk/maint-pass-c-config-in-env'
* jk/maint-pass-c-config-in-env:
do not pass "git -c foo=bar" params to transport helpers
pass "git -c foo=bar" params through environment
Diffstat (limited to 't')
-rwxr-xr-x | t/t5400-send-pack.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/t/t5400-send-pack.sh b/t/t5400-send-pack.sh index c718253673..5bcf0b867a 100755 --- a/t/t5400-send-pack.sh +++ b/t/t5400-send-pack.sh @@ -94,6 +94,29 @@ test_expect_success 'refuse deleting push with denyDeletes' ' test_must_fail git send-pack ./victim :extra master ' +test_expect_success 'cannot override denyDeletes with git -c send-pack' ' + ( + cd victim && + test_might_fail git branch -D extra && + git config receive.denyDeletes true && + git branch extra master + ) && + test_must_fail git -c receive.denyDeletes=false \ + send-pack ./victim :extra master +' + +test_expect_success 'override denyDeletes with git -c receive-pack' ' + ( + cd victim && + test_might_fail git branch -D extra && + git config receive.denyDeletes true && + git branch extra master + ) && + git send-pack \ + --receive-pack="git -c receive.denyDeletes=false receive-pack" \ + ./victim :extra master +' + test_expect_success 'denyNonFastforwards trumps --force' ' ( cd victim && |