make call_hg_command() use the correct environment

This commit is contained in:
Anthony Scopatz 2016-02-05 11:25:15 -05:00
parent 6d0623763c
commit c47cf4f3d5
2 changed files with 2 additions and 1 deletions

View file

@ -23,6 +23,7 @@ Current Developments
**Fixed:**
* Fixed path completion not working for absolute paths or for expanded paths on Windows.
* Fixed issue with hg dirty branches and $PATH.
**Security:** None

View file

@ -790,7 +790,7 @@ def get_git_branch(cwd=None):
def call_hg_command(command, cwd):
# Override user configurations settings and aliases
hg_env = os.environ.copy()
hg_env = builtins.__xonsh_env__.detype()
hg_env['HGRCPATH'] = ""
s = None