mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
strip hg root value, news
This commit is contained in:
parent
0aaf9b3052
commit
a01ff4c82f
2 changed files with 14 additions and 1 deletions
13
news/vc.rst
Normal file
13
news/vc.rst
Normal file
|
@ -0,0 +1,13 @@
|
|||
**Added:** None
|
||||
|
||||
**Changed:** None
|
||||
|
||||
**Deprecated:** None
|
||||
|
||||
**Removed:** None
|
||||
|
||||
**Fixed:**
|
||||
|
||||
* git/hg won't run unless we locate the binary
|
||||
|
||||
**Security:** None
|
|
@ -69,7 +69,7 @@ def get_hg_branch(root=None):
|
|||
# not in repo
|
||||
return None
|
||||
else:
|
||||
root = xt.decode_bytes(root)
|
||||
root = xt.decode_bytes(root).strip()
|
||||
if env.get('VC_HG_SHOW_BRANCH'):
|
||||
# get branch name
|
||||
branch_path = os.path.sep.join([root, '.hg', 'branch'])
|
||||
|
|
Loading…
Add table
Reference in a new issue