summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2008-06-15 06:43:41 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2008-06-15 06:43:41 +0300
commit64ca1cf7851edbe7decaca0db9b53438b5bf2acd (patch)
tree2bbe26fe839a3c898fc8fd395d8a6bfb6c5c9985
parentgit status correctly sorted, all modified, added, untracked are displayed in ... (diff)
downloadgit-prompt-64ca1cf7851edbe7decaca0db9b53438b5bf2acd.tar.gz
git-prompt-64ca1cf7851edbe7decaca0db9b53438b5bf2acd.tar.bz2
git-prompt-64ca1cf7851edbe7decaca0db9b53438b5bf2acd.zip
$GIT_DIR used
-rwxr-xr-xprompt2
1 files changed, 1 insertions, 1 deletions
diff --git a/prompt b/prompt
index bba3e2b..bf3883d 100755
--- a/prompt
+++ b/prompt
@@ -234,7 +234,7 @@ PROMPT_COMMAND='
# LOCAL
# GIT
- if [[ -d .git || -d ../.git || -d ../../.git ]]; then
+ if [[ -n $DIT_DIR && -d $GIT_DIR || -d .git || -d ../.git || -d ../../.git ]]; then
### status
# clean(blue) nothing to commit (working directory clean)