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 committed Jan 20, 2024
1 parent ff1574a commit 0940e88
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 0940e88

Please sign in to comment.