From c93fb106a816006a5236c21baf524de64c8c30f6 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Wed, 14 Aug 2013 11:23:54 +0200 Subject: [Git] corrects tracking status. --- 01_Internal.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01_Internal.zsh b/01_Internal.zsh index 564a4f3..7a06365 100644 --- a/01_Internal.zsh +++ b/01_Internal.zsh @@ -361,7 +361,7 @@ __get_git_tracking_status() { __debug -n " tracking..." my_git_branch="$(git branch 2>&- | grep -E '^\* ' | cut -c3-)" - if [ "$checkouted_branch" -a ! "$(git config --get branch.$checkouted_branch.remote)" ] + if [ "$my_git_branch" != "(no branch)" -a ! "$(git config --get branch.$my_git_branch.remote)" ] then git_tracking_status=$C_$_gcl_colors[untracked]$_C"✖" fi -- cgit v1.2.3