diff options
author | WeZZard <960509+WeZZard@users.noreply.github.com> | 2022-01-11 01:38:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 18:38:35 +0100 |
commit | 971683762e3aba543b0dc787e8a5ee1c16b5ace7 (patch) | |
tree | 928f5499b3d01b96ec4cf75783cb10ac3bf4a85e /themes | |
parent | 0ca2e48ee8449439a6e0a4ca0652a4ec07031ad3 (diff) | |
download | zsh-971683762e3aba543b0dc787e8a5ee1c16b5ace7.tar.gz zsh-971683762e3aba543b0dc787e8a5ee1c16b5ace7.tar.bz2 zsh-971683762e3aba543b0dc787e8a5ee1c16b5ace7.zip |
fix(avit): disable `log.showSignatures` in `_git_time_since_commit` (#10072)
Diffstat (limited to 'themes')
-rw-r--r-- | themes/avit.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/avit.zsh-theme b/themes/avit.zsh-theme index 1e20d8f9f..d117c4e94 100644 --- a/themes/avit.zsh-theme +++ b/themes/avit.zsh-theme @@ -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)) |