Skip to content

Commit

Permalink
fix: silence git check-ignore output
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent authored and radoering committed Jan 22, 2024
1 parent 9cb1cd6 commit e20b1ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/poetry/core/vcs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def get_vcs(directory: Path) -> Git | None:

check_ignore = subprocess.run(
[executable(), "check-ignore", "."],
stderr=subprocess.DEVNULL,
stdout=subprocess.DEVNULL,
).returncode

if check_ignore == 0:
Expand Down

0 comments on commit e20b1ed

Please sign in to comment.