fix: disable log.showSignature in git log calls

This commit is contained in:
Marc Cornellà
2022-01-10 19:39:05 +01:00
parent 971683762e
commit 9c84c344d7
7 changed files with 7 additions and 15 deletions

View File

@@ -40,7 +40,7 @@ function git_time_since_commit() {
local last_commit seconds_since_last_commit
# Only proceed if there is actually a commit
if ! last_commit=$(command git log --pretty=format:'%at' -1 2>/dev/null); then
if ! last_commit=$(command git -c log.showSignature=false log --pretty=format:'%at' -1 2>/dev/null); then
echo "[$ZSH_THEME_GIT_TIME_SINCE_COMMIT_NEUTRAL~%{$reset_color%}]"
return
fi