Show More
@@ -125,10 +125,11 b' class GitRepository(BaseRepository):' | |||||
125 | cmd = [_git_path] + _copts + cmd |
|
125 | cmd = [_git_path] + _copts + cmd | |
126 | if _str_cmd: |
|
126 | if _str_cmd: | |
127 | cmd = ' '.join(cmd) |
|
127 | cmd = ' '.join(cmd) | |
|
128 | ||||
128 | try: |
|
129 | try: | |
129 | _opts = dict( |
|
130 | _opts = dict( | |
130 | env=gitenv, |
|
131 | env=gitenv, | |
131 |
shell= |
|
132 | shell=True, | |
132 | ) |
|
133 | ) | |
133 | _opts.update(opts) |
|
134 | _opts.update(opts) | |
134 | p = subprocessio.SubprocessIOChunker(cmd, **_opts) |
|
135 | p = subprocessio.SubprocessIOChunker(cmd, **_opts) |
@@ -342,10 +342,10 b' class SubprocessIOChunker(object):' | |||||
342 | input_streamer.start() |
|
342 | input_streamer.start() | |
343 | inputstream = input_streamer.output |
|
343 | inputstream = input_streamer.output | |
344 |
|
344 | |||
|
345 | _shell = kwargs.get('shell', True) | |||
345 | if isinstance(cmd, (list, tuple)): |
|
346 | if isinstance(cmd, (list, tuple)): | |
346 | cmd = ' '.join(cmd) |
|
347 | cmd = ' '.join(cmd) | |
347 |
|
348 | |||
348 | _shell = kwargs.get('shell') or True |
|
|||
349 | kwargs['shell'] = _shell |
|
349 | kwargs['shell'] = _shell | |
350 | _p = subprocess.Popen(cmd, |
|
350 | _p = subprocess.Popen(cmd, | |
351 | bufsize=-1, |
|
351 | bufsize=-1, | |
@@ -353,7 +353,7 b' class SubprocessIOChunker(object):' | |||||
353 | stdout=subprocess.PIPE, |
|
353 | stdout=subprocess.PIPE, | |
354 | stderr=subprocess.PIPE, |
|
354 | stderr=subprocess.PIPE, | |
355 | **kwargs |
|
355 | **kwargs | |
356 |
|
|
356 | ) | |
357 |
|
357 | |||
358 | bg_out = BufferedGenerator(_p.stdout, buffer_size, chunk_size, starting_values) |
|
358 | bg_out = BufferedGenerator(_p.stdout, buffer_size, chunk_size, starting_values) | |
359 | bg_err = BufferedGenerator(_p.stderr, 16000, 1, bottomless=True) |
|
359 | bg_err = BufferedGenerator(_p.stderr, 16000, 1, bottomless=True) |
General Comments 0
You need to be logged in to leave comments.
Login now