Fix #494
This commit is contained in:
parent
72ea6730ea
commit
235d6d3652
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue