diff --git a/share/functions/__fish_hg_prompt.fish b/share/functions/__fish_hg_prompt.fish index efb7c7aaf..fa25cb353 100644 --- a/share/functions/__fish_hg_prompt.fish +++ b/share/functions/__fish_hg_prompt.fish @@ -27,12 +27,8 @@ function __fish_hg_prompt --description 'Write out the hg prompt' return 1 end - # If we're not in an hg repository, bail - if not hg root >/dev/null ^/dev/null - return 0 - end - set -l branch (hg branch ^/dev/null) + # If there's no branch, there's no repository if test -z $branch return end