summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoppreH <boppreh@gmail.com>2013-10-17 21:47:55 -0300
committerBoppreH <boppreh@gmail.com>2013-10-17 21:47:55 -0300
commit3f277ba01f9a93fb040a365eef80f46ce6a9de85 (patch)
treebe02481aabb9459e185f420e66c958005f766805
parent0b820e617ab21b372394bf12129c30174f57c5d7 (diff)
downloadgitpython-3f277ba01f9a93fb040a365eef80f46ce6a9de85.tar.gz
Avoid spawning console windows when running from .pyw
By adding `shell=True,` to the list of Popen parameters, we avoid spawning console windows when scripts call this method from a windowless (.pyw) Python script.
-rw-r--r--git/cmd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 576a5300..579fbc83 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -336,6 +336,7 @@ class Git(LazyMixin):
stderr=PIPE,
stdout=PIPE,
close_fds=(os.name=='posix'),# unsupported on linux
+ shell=True,
**subprocess_kwargs
)
if as_process: