Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
c397000b
Commit
c397000b
authored
Feb 21, 2014
by
Chris Jones
Browse files
grab last item in list which is the branch instead of relying on position.
parent
7a546362
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/git-prompt/gitstatus.py
View file @
c397000b
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment