git: allow tags to be unsigned when signing.signByDefault=true (#3479)

This commit is contained in:
Sylvain Fankhauser 2023-03-02 12:27:57 +01:00 committed by GitHub
parent db1c22626a
commit 547a3bc8d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -466,8 +466,8 @@ in {
(mkIf (cfg.signing != null) {
programs.git.iniContent = {
user.signingKey = mkIf (cfg.signing.key != null) cfg.signing.key;
commit.gpgSign = cfg.signing.signByDefault;
tag.gpgSign = cfg.signing.signByDefault;
commit.gpgSign = mkDefault cfg.signing.signByDefault;
tag.gpgSign = mkDefault cfg.signing.signByDefault;
gpg.program = cfg.signing.gpgPath;
};
})