Skip to content

Commit

Permalink
Merge pull request #1753 from EliahKagan/fds
Browse files Browse the repository at this point in the history
Let close_fds be True on all platforms
  • Loading branch information
Byron committed Dec 1, 2023
2 parents 7c423b4 + 78d63d9 commit 3dbf5b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion git/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,6 @@ def execute(
stderr=PIPE,
stdout=stdout_sink,
shell=shell,
close_fds=(os.name == "posix"), # Unsupported on Windows.
universal_newlines=universal_newlines,
creationflags=PROC_CREATIONFLAGS,
**subprocess_kwargs,
Expand Down
1 change: 0 additions & 1 deletion git/index/fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def run_commit_hook(name: str, index: "IndexFile", *args: str) -> None:
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
cwd=index.repo.working_dir,
close_fds=(os.name == "posix"),
creationflags=PROC_CREATIONFLAGS,
)
except Exception as ex:
Expand Down

0 comments on commit 3dbf5b3

Please sign in to comment.