From b8d6e0d83a098b090d97f2eee0d3164377a93476 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 4 Mar 2024 13:51:20 +0100 Subject: fix git gpg commit signing --- .local/share/bin/gpg-git | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 .local/share/bin/gpg-git (limited to '.local/share') diff --git a/.local/share/bin/gpg-git b/.local/share/bin/gpg-git new file mode 100755 index 0000000..281b793 --- /dev/null +++ b/.local/share/bin/gpg-git @@ -0,0 +1,5 @@ +#!/bin/sh +GPG_KEY_ID="$GPG_ID_GIT" # see ~/.profile +GPG_KEY_PASSPHRASE="$(pass "gpg/$GPG_KEY_ID.asc" | head -n1)" +echo "gpg $*" >> ~/gpg-git.txt +gpg --batch --no-tty --pinentry-mode loopback --passphrase "$GPG_KEY_PASSPHRASE" "$@" -- cgit v1.2.3