971683762e3aba543b0dc787e8a5ee1c16b5ace7

Author
WeZZard <960509+WeZZard@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

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

Diff

 1diff --git a/themes/avit.zsh-theme b/themes/avit.zsh-theme
 2index 1e20d8f9fd8b02daf9f637f61d0d0c4865acc480..d117c4e94e507447fec4ba18d13d31b328ebded5 100644
 3--- a/themes/avit.zsh-theme
 4+++ b/themes/avit.zsh-theme
 5@@ -31,7 +31,7 @@ function _git_time_since_commit() {
 6   local last_commit now seconds_since_last_commit
 7   local minutes hours days years commit_age
 8   # Only proceed if there is actually a commit.
 9-  if last_commit=$(git log --pretty=format:'%at' -1 2> /dev/null); then
10+  if last_commit=$(command git -c log.showSignatures=false log --format='%at' -1 2>/dev/null); then
11     now=$(date +%s)
12     seconds_since_last_commit=$((now-last_commit))
13