From 2a2532b752847492fafc07358624c0c85855ea19 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sun, 23 Nov 2014 14:41:29 -0800 Subject: [PATCH] [bobthefish] One more hg speedup. Send along the directory where we already found the .hg to throw hg a bone. --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index b47b6ef..207cf15 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -108,7 +108,7 @@ function __bobthefish_hg_project_dir -d 'Print the current hg project base direc set d (pwd) while not [ $d = / ] if [ -e $d/.hg ] - command hg root ^/dev/null + command hg root --cwd "$d" ^/dev/null return end set d (dirname $d)