Added 'command' to git_commits_behind function

This commit is contained in:
Steven Spasbo 2015-12-17 01:27:36 -08:00
commit f04e71f115

View file

@ -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
}