Fix regression in git prompt

pull/318/head
Eduardo Bellido Bellido 2014-08-13 22:47:34 +02:00
parent ee698fbae3
commit f9448f5ebb
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ function git_prompt_vars {
SCM_GIT_BEHIND=''
SCM_GIT_STASH=''
if [[ "$(git config --get bash-it.hide-status)" != "1" ]]; then
local status="$(git status --porcelain 2> /dev/null)"
local status="$(git status -b --porcelain 2> /dev/null || git status --porcelain 2> /dev/null)"
if [[ -n "${status}" ]] && [[ "${status}" != "\n" ]]; then
SCM_DIRTY=1
SCM_STATE=${GIT_THEME_PROMPT_DIRTY:-$SCM_THEME_PROMPT_DIRTY}