Skip to content

Commit

Permalink
Merge pull request #2105 from adisbladis/vcs-git-path
Browse files Browse the repository at this point in the history
Fix VCS when git is not in PATH
  • Loading branch information
finswimmer authored Feb 29, 2020
2 parents bb9582c + d2fed3d commit ae96feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poetry/vcs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_vcs(directory): # type: (Path) -> Git

vcs = Git(Path(git_dir))

except subprocess.CalledProcessError:
except (subprocess.CalledProcessError, OSError):
vcs = None
finally:
os.chdir(str(working_dir))
Expand Down

0 comments on commit ae96feb

Please sign in to comment.