Make sure stdout is a string when we try to treat it as such...
This commit is contained in:
1 parent
b4bb54aca6
commit
51b1535a29
1 file changed
+2
-1
@@ -93,7 +93,8 @@ def _git(args, cwd, verbose=False, git_executable=None):
|
||||
|
||||
for c in commands:
|
||||
try:
|
||||
return _execute([c] + args, cwd=cwd)
|
||||
returncode, stdout, stderr = _execute([c] + args, cwd=cwd)
|
||||
return returncode, "\n".join(stdout), "\n".join(stderr)
|
||||
except EnvironmentError:
|
||||
e = sys.exc_info()[1]
|
||||
if e.errno == errno.ENOENT:
|
||||
|
||||
Reference in new issue
Block a user