summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2014-11-17 13:54:28 +0100
committerSebastian Thiel <byronimo@gmail.com>2014-11-17 13:54:28 +0100
commit2af98929bd185cf1b4316391078240f337877f66 (patch)
treeca0d2d0844b349265b1aca779baa4238c6ad93e7
parenta40d848794133de7b6e028f2513c939d823767cb (diff)
parent7e231a4f184583fbac2d3ef110dacd1f015d5e1c (diff)
downloadgitpython-2af98929bd185cf1b4316391078240f337877f66.tar.gz
Merge branch 'boppreh-patch-1' into 0.3
-rw-r--r--git/cmd.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 0f1a892d..9cc6b1fa 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -29,7 +29,6 @@ def dashify(string):
class Git(LazyMixin):
-
"""
The Git class manages communication with the Git binary.
@@ -348,6 +347,9 @@ class Git(LazyMixin):
stdin=istream,
stderr=PIPE,
stdout=PIPE,
+ # 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
**subprocess_kwargs
)