From e20b1edc8268bd562342a27bcdae59520c962d3d Mon Sep 17 00:00:00 2001 From: Branch Vincent Date: Sat, 20 Jan 2024 14:35:35 -0800 Subject: [PATCH] fix: silence git check-ignore output --- src/poetry/core/vcs/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/poetry/core/vcs/__init__.py b/src/poetry/core/vcs/__init__.py index debd95760..2c2322053 100644 --- a/src/poetry/core/vcs/__init__.py +++ b/src/poetry/core/vcs/__init__.py @@ -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: