From c4b8b0fce25a507212338687525626d62835bb71 Mon Sep 17 00:00:00 2001 From: Leonid Volnitsky Date: Sun, 15 Jun 2008 07:47:33 +0300 Subject: git-rev-parse --git-dir used to detect .dir path --- prompt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prompt b/prompt index bf3883d..344feec 100755 --- a/prompt +++ b/prompt @@ -234,7 +234,8 @@ PROMPT_COMMAND=' # LOCAL # GIT - if [[ -n $DIT_DIR && -d $GIT_DIR || -d .git || -d ../.git || -d ../../.git ]]; then + git_dir=`git-rev-parse --git-dir 2> /dev/null` + if [[ $git_dir ]]; then ### status # clean(blue) nothing to commit (working directory clean) -- cgit v1.2.3