diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-09-15 22:15:24 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-15 22:15:24 +0200 |
commit | 10de757a09414a06739478c687ea6a24234c8ee8 (patch) | |
tree | 07e1c6562ef7e0a454e9b2cd24333353096ee4f5 /t | |
parent | Merge branch 'so/diff-index-regression-fix' (diff) | |
parent | send-email: fix a "first config key wins" regression in v2.33.0 (diff) | |
download | git-10de757a09414a06739478c687ea6a24234c8ee8.tar.xz git-10de757a09414a06739478c687ea6a24234c8ee8.zip |
Merge branch 'ab/send-email-config-fix'
Regression fix.
* ab/send-email-config-fix:
send-email: fix a "first config key wins" regression in v2.33.0
Diffstat (limited to 't')
-rwxr-xr-x | t/t9001-send-email.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index 9022074474..aa0c20499b 100755 --- a/t/t9001-send-email.sh +++ b/t/t9001-send-email.sh @@ -1533,6 +1533,21 @@ test_expect_success $PREREQ 'sendemail.8bitEncoding works' ' test_cmp content-type-decl actual ' +test_expect_success $PREREQ 'sendemail.8bitEncoding in .git/config overrides --global .gitconfig' ' + clean_fake_sendmail && + git config sendemail.assume8bitEncoding UTF-8 && + test_when_finished "rm -rf home" && + mkdir home && + git config -f home/.gitconfig sendemail.assume8bitEncoding "bogus too" && + echo bogus | + env HOME="$(pwd)/home" DEBUG=1 \ + git send-email --from=author@example.com --to=nobody@example.com \ + --smtp-server="$(pwd)/fake.sendmail" \ + email-using-8bit >stdout && + egrep "Content|MIME" msgtxt1 >actual && + test_cmp content-type-decl actual +' + test_expect_success $PREREQ '--8bit-encoding overrides sendemail.8bitEncoding' ' clean_fake_sendmail && git config sendemail.assume8bitEncoding "bogus too" && |