diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2013-08-14 11:23:54 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2013-08-14 11:23:54 +0200 |
commit | c93fb106a816006a5236c21baf524de64c8c30f6 (patch) | |
tree | 3acd414f3d1df0dbf98917292332ba1682438a04 | |
parent | 17b6350113739fcde3ef4ccb0a7021f3feeede73 (diff) |
[Git] corrects tracking status.
-rw-r--r-- | 01_Internal.zsh | 2 |
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 |