mirror of
https://github.com/powerline/powerline.git
synced 2025-07-25 23:05:32 +02:00
Only use locally stored bzr branch nickname
Fixes #324 (slow vcs branch segment with bzr checkout)
This commit is contained in:
parent
747c75c1c4
commit
dda500a673
@ -58,6 +58,6 @@ class Repository(object):
|
|||||||
def branch(self):
|
def branch(self):
|
||||||
try:
|
try:
|
||||||
b = branch.Branch.open(self.directory)
|
b = branch.Branch.open(self.directory)
|
||||||
return b.nick or None
|
return b._get_nick(local=True) or None
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user