mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
fix(avit): disable log.showSignatures in _git_time_since_commit (#10072)
This commit is contained in:
@@ -31,7 +31,7 @@ function _git_time_since_commit() {
|
|||||||
local last_commit now seconds_since_last_commit
|
local last_commit now seconds_since_last_commit
|
||||||
local minutes hours days years commit_age
|
local minutes hours days years commit_age
|
||||||
# Only proceed if there is actually a commit.
|
# 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)
|
now=$(date +%s)
|
||||||
seconds_since_last_commit=$((now-last_commit))
|
seconds_since_last_commit=$((now-last_commit))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user