mirror of
https://github.com/powerline/powerline.git
synced 2025-07-20 12:25:04 +02:00
Don't let the vcs detection cross mount point boundaries
Fixes issue 625
This commit is contained in:
parent
70e279afde
commit
f15bb19c35
@ -16,6 +16,8 @@ def generate_directories(path):
|
||||
if os.path.isdir(path):
|
||||
yield path
|
||||
while True:
|
||||
if os.path.ismount(path):
|
||||
break
|
||||
old_path = path
|
||||
path = os.path.dirname(path)
|
||||
if path == old_path or not path:
|
||||
|
Loading…
x
Reference in New Issue
Block a user