From 4210338b4166f8f1c16bf30e72a69e11c098eea8 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Thu, 19 Jun 2025 01:15:55 +0400 Subject: chore(Makefile): filter signingkey comment in gitconfig when installing and warn if git signing key not set --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 869318c..7a59c9a 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,11 @@ config: $(LINK) $(CONFDIR)/shell/profile $(ZPROFILE) git: - $(COPY) config/git/gitconfig $(GITCONFIG) + sed '/^# signingkey =/d' config/git/gitconfig > $(GITCONFIG) + @echo "Warning: Git commit/tag signing is enabled but signingKey is not set." >&2 + @echo "Configure it manually using:" >&2 + @echo " gpg --list-secret-keys --keyid-format=long" >&2 + @echo " git config --global user.signingkey " >&2 scripts: mkdir -p $(BINDIR) -- cgit v1.2.3