Mercurial > hg
changeset 28949:9d3e280864fb
subrepo: disable localizations when calling Git (issue5176)
Spotted by Aidar Sayfullin.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 16 Apr 2016 15:14:25 -0500 |
parents | 16390f4cccf0 |
children | 9e1c9f016b72 |
files | mercurial/subrepo.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/subrepo.py Sat Apr 16 12:41:58 2016 +0530 +++ b/mercurial/subrepo.py Sat Apr 16 15:14:25 2016 -0500 @@ -1387,6 +1387,8 @@ self.ui.debug('%s: git %s\n' % (self._relpath, ' '.join(commands))) if env is None: env = os.environ.copy() + # disable localization for Git output (issue5176) + env['LC_ALL'] = 'C' # fix for Git CVE-2015-7545 if 'GIT_ALLOW_PROTOCOL' not in env: env['GIT_ALLOW_PROTOCOL'] = 'file:git:http:https:ssh'