diff --git a/git/cmd.py b/git/cmd.py index cde6073da..05e199dc0 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -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, diff --git a/git/index/fun.py b/git/index/fun.py index 7b3b06269..eaf5f51ff 100644 --- a/git/index/fun.py +++ b/git/index/fun.py @@ -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: