This commit is contained in:
Kovid Goyal 2013-05-14 14:33:17 +05:30 committed by Kim Silkebækken
parent 72ea6730ea
commit 235d6d3652
1 changed files with 4 additions and 1 deletions

View File

@ -193,7 +193,10 @@ def tree_status(repo, logger):
def guess(path):
for directory in generate_directories(path):
for vcs, vcs_dir, check in vcs_props:
if check(os.path.join(directory, vcs_dir)):
repo_dir = os.path.join(directory, vcs_dir)
if check(repo_dir):
if os.path.isdir(repo_dir) and not os.access(repo_dir, os.X_OK):
continue
try:
if vcs not in globals():
globals()[vcs] = getattr(__import__('powerline.lib.vcs', fromlist=[vcs]), vcs)