changeset 365:d8216ea00ad1

Do not set gpgsign when no key is configured
author zegervdv <zegervdv@me.com>
date Sat, 27 Mar 2021 17:31:46 +0100
parents f300ef1bc475
children 42bc7d63537e
files dot_gitconfig.tmpl
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dot_gitconfig.tmpl	Fri Mar 19 17:55:02 2021 +0100
+++ b/dot_gitconfig.tmpl	Sat Mar 27 17:31:46 2021 +0100
@@ -6,7 +6,9 @@
 	autosquash = true
 	autostash = true
 [commit]
+{{- if ne .signingkey "" }}
 	gpgsign = true
+{{- end }}
 	verbose = true
 [pull]
 	rebase = true