Make sure stdout is a string when we try to treat it as such...

This commit is contained in:
Gina Häußge 2015-08-27 16:43:58 +02:00
parent b4bb54aca6
commit 51b1535a29

View file

@ -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: