From 86b9af62c34588bbec14de5979e661eab31af341 Mon Sep 17 00:00:00 2001 From: Eduardo Bellido Bellido Date: Thu, 10 Sep 2015 20:07:04 +0200 Subject: [PATCH] Fix grep pattern --- themes/base.theme.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/base.theme.bash b/themes/base.theme.bash index 1393abd4..fc5e529a 100644 --- a/themes/base.theme.bash +++ b/themes/base.theme.bash @@ -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}...}