diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2008-03-03 11:56:43 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2008-03-07 14:15:21 +0100 |
commit | a101065b478dee84ecb7989358fef5d53847125c (patch) | |
tree | 25bfc8e9c1138a20674336ff6e10e494ed4d0788 | |
parent | ed0976f7e48e5c7006619613172c824761a2ef6f (diff) |
Don't show anymore the git-branch and git-status on current
folder if it does not figures under git managment.
-rw-r--r-- | 01_Functions.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh index ba88af2..a0da3c0 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -45,7 +45,7 @@ get_git_branch () check_git_status () { ## GIT TRACKING ## - if [ "$GITCHECK" != "no" ] + if [ "$GITCHECK" != "no" -a "$(git-log .)" != "" ] then GITBRANCH=$(get_git_branch); if [ "$GITBRANCH" != "" ] |