From f04e71f115bb12b9220fa93c1174c4a74243c3fb Mon Sep 17 00:00:00 2001 From: Steven Spasbo Date: Thu, 17 Dec 2015 01:27:36 -0800 Subject: [PATCH] Added 'command' to git_commits_behind function --- lib/git.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git.zsh b/lib/git.zsh index 926fd7985..7bc85819b 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -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 }