From c47cf4f3d5a1e52dfacba930622c48059dc9d410 Mon Sep 17 00:00:00 2001 From: Anthony Scopatz Date: Fri, 5 Feb 2016 11:25:15 -0500 Subject: [PATCH] make call_hg_command() use the correct environment --- CHANGELOG.rst | 1 + xonsh/environ.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b14721836..92792a2f8 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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 diff --git a/xonsh/environ.py b/xonsh/environ.py index 4a0267ea8..f8c5370bc 100644 --- a/xonsh/environ.py +++ b/xonsh/environ.py @@ -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