Show More
@@ -341,9 +341,10 b' class SubprocessIOChunker(object):' | |||
|
341 | 341 | if isinstance(cmd, (list, tuple)): |
|
342 | 342 | cmd = ' '.join(cmd) |
|
343 | 343 | |
|
344 | _shell = kwargs.get('shell') or True | |
|
345 | kwargs['shell'] = _shell | |
|
344 | 346 | _p = subprocess.Popen(cmd, |
|
345 | 347 | bufsize=-1, |
|
346 | shell=True, | |
|
347 | 348 | stdin=inputstream, |
|
348 | 349 | stdout=subprocess.PIPE, |
|
349 | 350 | stderr=subprocess.PIPE, |
@@ -115,6 +115,7 b' class GitRepository(BaseRepository):' | |||
|
115 | 115 | try: |
|
116 | 116 | opts = dict( |
|
117 | 117 | env=gitenv, |
|
118 | shell=False, | |
|
118 | 119 | ) |
|
119 | 120 | if os.path.isdir(self.path): |
|
120 | 121 | opts['cwd'] = self.path |
@@ -124,9 +125,7 b' class GitRepository(BaseRepository):' | |||
|
124 | 125 | raise RepositoryError("Couldn't run git command (%s).\n" |
|
125 | 126 | "Original error was:%s" % (cmd, err)) |
|
126 | 127 | |
|
127 | so = ''.join(p) | |
|
128 | se = None | |
|
129 | return so, se | |
|
128 | return ''.join(p.output), ''.join(p.error) | |
|
130 | 129 | |
|
131 | 130 | @classmethod |
|
132 | 131 | def _check_url(cls, url): |
General Comments 0
You need to be logged in to leave comments.
Login now