mirror of
https://github.com/powerline/powerline.git
synced 2025-07-28 08:14:41 +02:00
Fix #494
This commit is contained in:
parent
72ea6730ea
commit
235d6d3652
@ -193,7 +193,10 @@ def tree_status(repo, logger):
|
|||||||
def guess(path):
|
def guess(path):
|
||||||
for directory in generate_directories(path):
|
for directory in generate_directories(path):
|
||||||
for vcs, vcs_dir, check in vcs_props:
|
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:
|
try:
|
||||||
if vcs not in globals():
|
if vcs not in globals():
|
||||||
globals()[vcs] = getattr(__import__('powerline.lib.vcs', fromlist=[vcs]), vcs)
|
globals()[vcs] = getattr(__import__('powerline.lib.vcs', fromlist=[vcs]), vcs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user