Skip to content

Commit ae96feb

Browse files
authored
Merge pull request #2105 from adisbladis/vcs-git-path
Fix VCS when git is not in PATH
2 parents bb9582c + d2fed3d commit ae96feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

poetry/vcs/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get_vcs(directory): # type: (Path) -> Git
2020

2121
vcs = Git(Path(git_dir))
2222

23-
except subprocess.CalledProcessError:
23+
except (subprocess.CalledProcessError, OSError):
2424
vcs = None
2525
finally:
2626
os.chdir(str(working_dir))

0 commit comments

Comments
 (0)