mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Stop looking for .hg when we hit root
We used to do this, in a different way, but let's make it super explicit. Fixes #127
This commit is contained in:
parent
728c52d6a3
commit
aa6a8e3c1d
@ -163,12 +163,12 @@ function __bobthefish_hg_project_dir -S -d 'Print the current hg project base di
|
|||||||
and return
|
and return
|
||||||
|
|
||||||
set -l d $PWD
|
set -l d $PWD
|
||||||
# Must check whether `$d = /` if using native dirname
|
|
||||||
while not [ -z "$d" ]
|
while not [ -z "$d" ]
|
||||||
if [ -e $d/.hg ]
|
if [ -e $d/.hg ]
|
||||||
command hg root --cwd "$d" ^/dev/null
|
command hg root --cwd "$d" ^/dev/null
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
[ "$d" = '/' ]; and return
|
||||||
set d (__bobthefish_dirname $d)
|
set d (__bobthefish_dirname $d)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user