summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-12-03 15:18:07 -0700
committerSean Whitton <spwhitton@spwhitton.name>2019-12-03 15:19:08 -0700
commit6bc34c592fde01820a2361d8f100e4d822b16d34 (patch)
tree0c2e1ef69d4908fcdc83fc89d236a44d53f70a48 /lib
parent504ecd2dac8071d73dc7e7a870264a30754a9948 (diff)
downloaddotfiles-6bc34c592fde01820a2361d8f100e4d822b16d34.tar.gz
hide gpg error output
Diffstat (limited to 'lib')
-rwxr-xr-xlib/hooks/git/dotfiles/post-checkout2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hooks/git/dotfiles/post-checkout b/lib/hooks/git/dotfiles/post-checkout
index 109fe4cc..e6488382 100755
--- a/lib/hooks/git/dotfiles/post-checkout
+++ b/lib/hooks/git/dotfiles/post-checkout
@@ -11,7 +11,7 @@ branch="$(git symbolic-ref --short HEAD)"
# which don't have access to my secret key. If commit.gpgsign gets
# set to true on those hosts, the rebase will be interrupted
if [ "$branch" = "master" ] \
- && gpg --list-secret-keys $(git config user.signingKey) \
+ && gpg --list-secret-keys $(git config user.signingKey) 2>/dev/null \
| grep -Eq '^(ssb|sec)[^#].*\[[A-Z]*S[A-Z]*\]$'; then
git config commit.gpgsign true
else