diff --git a/scm.py b/scm.py index 46c25a7201..39e9b4ea4e 100644 --- a/scm.py +++ b/scm.py @@ -118,7 +118,7 @@ class GIT(object): env = GIT.ApplyEnvVars(kwargs) output = subprocess2.check_output( ['git'] + args, cwd=cwd, stderr=subprocess2.PIPE, env=env, - **kwargs).decode('utf-8') + **kwargs).decode('utf-8', 'replace') return output.strip() if strip_out else output @staticmethod