Commit d2fed3de by adisbladis

Fix VCS when git is not in PATH

parent bb9582c9
...@@ -20,7 +20,7 @@ def get_vcs(directory): # type: (Path) -> Git ...@@ -20,7 +20,7 @@ def get_vcs(directory): # type: (Path) -> Git
vcs = Git(Path(git_dir)) vcs = Git(Path(git_dir))
except subprocess.CalledProcessError: except (subprocess.CalledProcessError, OSError):
vcs = None vcs = None
finally: finally:
os.chdir(str(working_dir)) os.chdir(str(working_dir))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment