From f15bb19c353991152124b764194e45f6789b83ab Mon Sep 17 00:00:00 2001 From: Daniel Brodie Date: Thu, 8 Aug 2013 19:53:34 +0300 Subject: [PATCH] Don't let the vcs detection cross mount point boundaries Fixes issue 625 --- powerline/lib/vcs/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/powerline/lib/vcs/__init__.py b/powerline/lib/vcs/__init__.py index 8666f2bf..005edf83 100644 --- a/powerline/lib/vcs/__init__.py +++ b/powerline/lib/vcs/__init__.py @@ -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: