Commit ae96feba by finswimmer Committed by GitHub

Merge pull request #2105 from adisbladis/vcs-git-path

Fix VCS when git is not in PATH
parents bb9582c9 d2fed3de
...@@ -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