mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-06 03:10:35 +01:00
grab last item in list which is the branch instead of relying on position.
This commit is contained in:
parent
bdad958a74
commit
7966f59913
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ if bline.find('Not currently on any branch') != -1:
|
||||||
'--short',
|
'--short',
|
||||||
'HEAD'], stdout=PIPE).communicate()[0][:-1]
|
'HEAD'], stdout=PIPE).communicate()[0][:-1]
|
||||||
else:
|
else:
|
||||||
branch = bline.split(' ')[3]
|
branch = bline.split(' ')[-1]
|
||||||
bstatusline = lines[1]
|
bstatusline = lines[1]
|
||||||
match = behead_re.match(bstatusline)
|
match = behead_re.match(bstatusline)
|
||||||
if match:
|
if match:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue