提交 c397000b 编写于 作者: C Chris Jones

grab last item in list which is the branch instead of relying on position.

上级 7a546362
......@@ -67,7 +67,7 @@ if bline.find('Not currently on any branch') != -1:
'--short',
'HEAD'], stdout=PIPE).communicate()[0][:-1]
else:
branch = bline.split(' ')[3]
branch = bline.split(' ')[-1]
bstatusline = lines[1]
match = behead_re.match(bstatusline)
if match:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册