diff options
author | Ronan Amicel <ronan.amicel@gmail.com> | 2012-01-04 12:17:04 +0100 |
---|---|---|
committer | Ronan Amicel <ronan.amicel@gmail.com> | 2012-01-04 12:17:04 +0100 |
commit | 48d325ef728a89e350acd7310d0451e32401f6ac (patch) | |
tree | d9712000b68afc677075b7ae6308ca63923960db | |
parent | fix for enable/disable_set_shell_label (diff) | |
download | git-prompt-48d325ef728a89e350acd7310d0451e32401f6ac.tar.gz git-prompt-48d325ef728a89e350acd7310d0451e32401f6ac.tar.bz2 git-prompt-48d325ef728a89e350acd7310d0451e32401f6ac.zip |
Fixed Mercurial repository detection
-rwxr-xr-x | git-prompt.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/git-prompt.sh b/git-prompt.sh index 41aa587..a63830b 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -375,8 +375,7 @@ parse_svn_status() { parse_hg_status() { # ☿ - - [[ -d ./.hg/ ]] || return 1 + hg_root=`hg root 2>/dev/null` || return 1 vcs=hg |