aboutsummaryrefslogtreecommitdiff
path: root/tests/modules/programs/git
diff options
context:
space:
mode:
authorAndrew Fontaine <andrew@afontaine.ca>2020-07-20 08:54:18 -0400
committerRobert Helgesson <robert@rycee.net>2020-08-13 21:36:31 +0200
commitbaea46c5acbb4a5be9b109d8ce06d2aec197353f (patch)
tree1b210b26606902e764e09d920282d986c7e38414 /tests/modules/programs/git
parentfceef469c2ec99232d847f1d9d6b32665d915bbb (diff)
git: set SSL if useStartTls is false
The git-send-email [0] script uses StartTLS if `smtpEncryption` is set to `tls`, which can break services that don't support StartTLS. [0]: https://github.com/git/git/blob/bd42bbe1a46c0fe486fc33e82969275e27e4dc19/git-send-email.perl#L1533 PR #1395
Diffstat (limited to 'tests/modules/programs/git')
-rw-r--r--tests/modules/programs/git/git-with-email-expected.conf2
-rw-r--r--tests/modules/programs/git/git-with-email.nix2
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/modules/programs/git/git-with-email-expected.conf b/tests/modules/programs/git/git-with-email-expected.conf
index 44035a23c47..f48b7c33334 100644
--- a/tests/modules/programs/git/git-with-email-expected.conf
+++ b/tests/modules/programs/git/git-with-email-expected.conf
@@ -6,7 +6,7 @@
[sendemail "hm@example.com"]
from = "hm@example.com"
- smtpEncryption = "tls"
+ smtpEncryption = "ssl"
smtpServer = "smtp.example.com"
smtpUser = "home.manager"
diff --git a/tests/modules/programs/git/git-with-email.nix b/tests/modules/programs/git/git-with-email.nix
index ca577eef4d3..d7ed7e185de 100644
--- a/tests/modules/programs/git/git-with-email.nix
+++ b/tests/modules/programs/git/git-with-email.nix
@@ -13,6 +13,8 @@ with lib;
userName = "H. M. Test";
};
+ home.stateVersion = "20.09";
+
nmt.script = ''
function assertGitConfig() {
local value