diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-01-06 12:18:53 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-01-06 12:44:34 +0100 |
commit | ede603e73a49eca2af2460c0a300a5cfdf83a785 (patch) | |
tree | f3bfa6b218be2f2a18530ef962e9d3476bd23d53 /gbp/git | |
parent | 30e49dd1e332ce005b0d3cd977186753bf2c3b06 (diff) |
GitRepository: properly use pipe on empty strings
So far we've been avoiding a pipe for input on empty strings. This would
make commands as 'git mktree' hang forever waiting for standard input.
So use a proper pipe on '' and skip it only for None.
Closes: #850319
Diffstat (limited to 'gbp/git')
-rw-r--r-- | gbp/git/repository.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py index fec53fcb..a39fea1f 100644 --- a/gbp/git/repository.py +++ b/gbp/git/repository.py @@ -171,7 +171,7 @@ class GitRepository(object): cmd = ['git', command] + args env = cls.__build_env(extra_env) stderr_arg = subprocess.PIPE if capture_stderr else None - stdin_arg = subprocess.PIPE if input else None + stdin_arg = subprocess.PIPE if input is not None else None log.debug(cmd) popen = subprocess.Popen(cmd, |