summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2013-08-14 11:23:54 +0200
committerHugues Hiegel <hugues.hiegel@qosmos.com>2013-08-14 11:23:54 +0200
commitc93fb106a816006a5236c21baf524de64c8c30f6 (patch)
tree3acd414f3d1df0dbf98917292332ba1682438a04
parent17b6350113739fcde3ef4ccb0a7021f3feeede73 (diff)
[Git] corrects tracking status.
-rw-r--r--01_Internal.zsh2
1 files changed, 1 insertions, 1 deletions
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