diff options
author | Marc Cornellà <hello@mcornella.com> | 2022-01-10 19:39:05 +0100 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2022-01-10 19:39:05 +0100 |
commit | 9c84c344d762b200de7acc794b9a0e7832144e7a (patch) | |
tree | 0b177e0ca390c6a5315d7397a51dc5b1f2806529 /themes/avit.zsh-theme | |
parent | 971683762e3aba543b0dc787e8a5ee1c16b5ace7 (diff) | |
download | zsh-9c84c344d762b200de7acc794b9a0e7832144e7a.tar.gz zsh-9c84c344d762b200de7acc794b9a0e7832144e7a.tar.bz2 zsh-9c84c344d762b200de7acc794b9a0e7832144e7a.zip |
fix: disable `log.showSignature` in `git log` calls
Diffstat (limited to 'themes/avit.zsh-theme')
-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 d117c4e94..f90ba331b 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=$(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)) |