fix(avit): disable `log.showSignatures` in `_git_time_since_commit` (#10072)

pull/10576/head
WeZZard 2022-01-11 01:38:35 +08:00 committed by GitHub
parent 0ca2e48ee8
commit 971683762e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 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=$(git log --pretty=format:'%at' -1 2> /dev/null); then
if last_commit=$(command git -c log.showSignatures=false log --format='%at' -1 2>/dev/null); then
now=$(date +%s)
seconds_since_last_commit=$((now-last_commit))