summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2008-06-27 22:37:10 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2008-06-27 22:37:10 +0300
commit96679164e3e517b1e9bdec1aa6523e2e8ac1ca52 (patch)
tree50106b463ae63fbb5cba50df62a1dc48ee677cc8
parentMakefile: relsease target (diff)
downloadgit-prompt-96679164e3e517b1e9bdec1aa6523e2e8ac1ca52.tar.gz
git-prompt-96679164e3e517b1e9bdec1aa6523e2e8ac1ca52.tar.bz2
git-prompt-96679164e3e517b1e9bdec1aa6523e2e8ac1ca52.zip
correctly works inside .git/
-rw-r--r--prompt2
1 files changed, 1 insertions, 1 deletions
diff --git a/prompt b/prompt
index c0a4c93..e8f9217 100644
--- a/prompt
+++ b/prompt
@@ -257,7 +257,7 @@ parse_git_dir() {
git_dir=`git-rev-parse --git-dir 2> /dev/null`
- [[ $git_dir ]] || return 1
+ [[ -n ${git_dir/./} ]] || return 1
vcs=git