Mercurial > public > mercurial-scm > hg
comparison mercurial/subrepo.py @ 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 | ff0d3b6b287f |
children | 92d37fb3f1aa |
comparison
equal
deleted
inserted
replaced
28948:16390f4cccf0 | 28949:9d3e280864fb |
---|---|
1385 are not supported and very probably fail. | 1385 are not supported and very probably fail. |
1386 """ | 1386 """ |
1387 self.ui.debug('%s: git %s\n' % (self._relpath, ' '.join(commands))) | 1387 self.ui.debug('%s: git %s\n' % (self._relpath, ' '.join(commands))) |
1388 if env is None: | 1388 if env is None: |
1389 env = os.environ.copy() | 1389 env = os.environ.copy() |
1390 # disable localization for Git output (issue5176) | |
1391 env['LC_ALL'] = 'C' | |
1390 # fix for Git CVE-2015-7545 | 1392 # fix for Git CVE-2015-7545 |
1391 if 'GIT_ALLOW_PROTOCOL' not in env: | 1393 if 'GIT_ALLOW_PROTOCOL' not in env: |
1392 env['GIT_ALLOW_PROTOCOL'] = 'file:git:http:https:ssh' | 1394 env['GIT_ALLOW_PROTOCOL'] = 'file:git:http:https:ssh' |
1393 # unless ui.quiet is set, print git's stderr, | 1395 # unless ui.quiet is set, print git's stderr, |
1394 # which is mostly progress and useful info | 1396 # which is mostly progress and useful info |