diff options
author | smokephil <smokephil@gmail.com> | 2022-01-21 09:43:40 +0100 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2022-01-21 17:02:22 +0800 |
commit | b3f873a1458223c075fdde6c85eb656648bcdcae (patch) | |
tree | 39702a9f60cfaf458dd2925caf7ac572e65f1b99 /git/cmd.py | |
parent | b719e1809c2c81283e930086faebd7d6050cd5d7 (diff) | |
download | gitpython-b3f873a1458223c075fdde6c85eb656648bcdcae.tar.gz |
set unassigned stdin to improve pyinstaller compatibility
To create a window application with pyinstaller, all suprocess input and output streams must be assigned and must not be None.
https://stackoverflow.com/a/51706087/7076612
Diffstat (limited to 'git/cmd.py')
-rw-r--r-- | git/cmd.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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, |