mirror of
https://github.com/powerline/powerline.git
synced 2025-07-24 14:25:21 +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):
|
||||
try:
|
||||
b = branch.Branch.open(self.directory)
|
||||
return b.nick or None
|
||||
return b._get_nick(local=True) or None
|
||||
except:
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user