Fix grep pattern

pull/571/head
Eduardo Bellido Bellido 2015-09-10 20:07:04 +02:00
parent d139e61fba
commit 86b9af62c3
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ function git_prompt_vars {
local ref=$(git symbolic-ref -q HEAD 2> /dev/null)
if [[ -n "$ref" ]]; then
SCM_BRANCH=${SCM_THEME_BRANCH_PREFIX}${ref#refs/heads/}
local tracking_info="$(grep "${SCM_BRANCH}..." <<< "${status}")"
local tracking_info="$(grep "${SCM_BRANCH}\.\.\." <<< "${status}")"
if [[ -n "${tracking_info}" ]]; then
[[ "${tracking_info}" =~ .+\[gone\]$ ]] && local branch_gone="true"
tracking_info=${tracking_info#\#\# ${SCM_BRANCH}...}