summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 8fb10742..4f056987 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -12,7 +12,8 @@ import signal
from subprocess import (
call,
Popen,
- PIPE
+ PIPE,
+ DEVNULL
)
import subprocess
import threading
@@ -873,7 +874,7 @@ class Git(LazyMixin):
env=env,
cwd=cwd,
bufsize=-1,
- stdin=istream,
+ stdin=istream or DEVNULL,
stderr=PIPE,
stdout=stdout_sink,
shell=shell is not None and shell or self.USE_SHELL,