Don't let the vcs detection cross mount point boundaries

Fixes issue 625
This commit is contained in:
Daniel Brodie 2013-08-08 19:53:34 +03:00
parent 70e279afde
commit f15bb19c35

View File

@ -16,6 +16,8 @@ def generate_directories(path):
if os.path.isdir(path): if os.path.isdir(path):
yield path yield path
while True: while True:
if os.path.ismount(path):
break
old_path = path old_path = path
path = os.path.dirname(path) path = os.path.dirname(path)
if path == old_path or not path: if path == old_path or not path: