strip hg root value, news

This commit is contained in:
laerus 2016-11-16 14:18:19 +02:00
parent 0aaf9b3052
commit a01ff4c82f
2 changed files with 14 additions and 1 deletions

13
news/vc.rst Normal file
View 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

View file

@ -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'])