From a101065b478dee84ecb7989358fef5d53847125c Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Mon, 3 Mar 2008 11:56:43 +0100 Subject: Don't show anymore the git-branch and git-status on current folder if it does not figures under git managment. --- 01_Functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" != "" ] -- cgit v1.2.3