mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
Added 'command' to git_commits_behind function
This commit is contained in:
parent
c0488d2084
commit
f04e71f115
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ function git_commits_ahead() {
|
|||
|
||||
# Gets the number of commits behind remote
|
||||
function git_commits_behind() {
|
||||
if git rev-parse --git-dir > /dev/null 2>&1; then
|
||||
if $(command git rev-parse --git-dir > /dev/null 2>&1); then
|
||||
echo $(git rev-list --count $(current_branch)..$(git rev-parse --abbrev-ref --symbolic-full-name @{u}))
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue