git: update tests

This commit is contained in:
Sizhe Zhao 2024-06-09 16:11:36 +08:00
parent 92963fa459
commit 5deb22a3a3
No known key found for this signature in database
GPG key ID: 52091D14C4D7017B
10 changed files with 59 additions and 2 deletions

View file

@ -1,5 +1,17 @@
[commit]
gpgSign = false
[credential "https://github.com"]
helper = "@gh@/bin/gh auth git-credential"
[credential "https://github.example.com"]
helper = "@gh@/bin/gh auth git-credential"
[gpg]
format = "openpgp"
[gpg "openpgp"]
program = "path-to-gpg"
[tag]
gpgSign = false

View file

@ -9,7 +9,10 @@
};
};
programs.git.enable = true;
programs.git = {
enable = true;
signing.signer = "path-to-gpg";
};
test.stubs.gh = { };

View file

@ -1,3 +1,12 @@
[commit]
gpgSign = false
[gpg]
format = "openpgp"
[gpg "openpgp"]
program = "path-to-gpg"
[sendemail "hm-account"]
from = "H. M. Test Jr. <hm@example.org>"
smtpEncryption = "tls"
@ -12,6 +21,9 @@
smtpSslCertPath = "/etc/ssl/certs/ca-certificates.crt"
smtpUser = "home.manager"
[tag]
gpgSign = false
[user]
email = "hm@example.com"
name = "H. M. Test"

View file

@ -11,6 +11,7 @@ with lib;
programs.git = {
enable = true;
package = pkgs.gitMinimal;
signing.signer = "path-to-gpg";
userEmail = "hm@example.com";
userName = "H. M. Test";
};

View file

@ -1,3 +1,12 @@
[commit]
gpgSign = false
[gpg]
format = "openpgp"
[gpg "openpgp"]
program = "path-to-gpg"
[sendemail "hm-account"]
from = "H. M. Test Jr. <hm@example.org>"
smtpEncryption = "tls"
@ -10,6 +19,9 @@
from = "H. M. Test <hm@example.com>"
smtpServer = "@msmtp@/bin/msmtp"
[tag]
gpgSign = false
[user]
email = "hm@example.com"
name = "H. M. Test"

View file

@ -11,6 +11,7 @@ with lib;
programs.git = {
enable = true;
package = pkgs.gitMinimal;
signing.signer = "path-to-gpg";
userEmail = "hm@example.com";
userName = "H. M. Test";
};

View file

@ -1,5 +1,17 @@
This can be anything.
[commit]
gpgSign = false
[gpg]
format = "openpgp"
[gpg "openpgp"]
program = "path-to-gpg"
[tag]
gpgSign = false
[user]
email = "user@example.org"
name = "John Doe"

View file

@ -7,6 +7,7 @@ with lib;
programs.git = {
enable = true;
package = pkgs.gitMinimal;
signing.signer = "path-to-gpg";
extraConfig = ''
This can be anything.
'';

View file

@ -2,6 +2,9 @@
gpgSign = true
[gpg]
format = "openpgp"
[gpg "openpgp"]
program = "path-to-gpg"
[tag]

View file

@ -6,7 +6,7 @@
userEmail = "user@example.org";
signing = {
gpgPath = "path-to-gpg";
signer = "path-to-gpg";
key = null;
signByDefault = true;
};