diff options
Diffstat (limited to 'git_command.py')
| -rw-r--r-- | git_command.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/git_command.py b/git_command.py index a1769270..19100fa9 100644 --- a/git_command.py +++ b/git_command.py | |||
| @@ -281,14 +281,9 @@ class GitCommand(object): | |||
| 281 | ssh_proxy.add_client(p) | 281 | ssh_proxy.add_client(p) |
| 282 | 282 | ||
| 283 | self.process = p | 283 | self.process = p |
| 284 | if input: | ||
| 285 | if isinstance(input, str): | ||
| 286 | input = input.encode('utf-8') | ||
| 287 | p.stdin.write(input) | ||
| 288 | p.stdin.close() | ||
| 289 | 284 | ||
| 290 | try: | 285 | try: |
| 291 | self.stdout, self.stderr = p.communicate() | 286 | self.stdout, self.stderr = p.communicate(input=input) |
| 292 | finally: | 287 | finally: |
| 293 | if ssh_proxy: | 288 | if ssh_proxy: |
| 294 | ssh_proxy.remove_client(p) | 289 | ssh_proxy.remove_client(p) |
