From e8eae18dcc360e6ab96c2291982bd4306adc01b9 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 12 Jan 2015 14:55:31 +0100 Subject: IndexFile.commit() now runs pre-commit and post-commit hooks. However, it does so only on posix. The test-case will run on posix only as well. Please note that in theory, even on windows we will attempt to run hooks, even though I am not sure that this will actually work. Fixes #81 --- git/cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/cmd.py') diff --git a/git/cmd.py b/git/cmd.py index 668d8f4a..2c76710c 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -502,7 +502,7 @@ class Git(LazyMixin): # Prevent cmd prompt popups on windows by using a shell ... . # See https://github.com/gitpython-developers/GitPython/pull/126 shell=sys.platform == 'win32', - close_fds=(os.name == 'posix'), # unsupported on linux + close_fds=(os.name == 'posix'), # unsupported on windows **subprocess_kwargs ) if as_process: -- cgit v1.2.1