fix: disable log.showSignature in git log calls

This commit is contained in:
Marc Cornellà 2022-01-10 19:39:05 +01:00
commit 9c84c344d7
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B
7 changed files with 7 additions and 15 deletions

View file

@ -31,7 +31,7 @@ function _git_time_since_commit() {
local last_commit now seconds_since_last_commit
local minutes hours days years commit_age
# Only proceed if there is actually a commit.
if last_commit=$(command git -c log.showSignatures=false log --format='%at' -1 2>/dev/null); then
if last_commit=$(command git -c log.showSignature=false log --format='%at' -1 2>/dev/null); then
now=$(date +%s)
seconds_since_last_commit=$((now-last_commit))