mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
bzr segment: Handle repos with shelves correctly
Return None instead of a string with spaces for a clean repo with shelves.
This commit is contained in:
parent
f0f1f3f85e
commit
c92aaef0e5
@ -53,7 +53,8 @@ class Repository(object):
|
||||
dirtied = 'D'
|
||||
elif line and line[0] == '?':
|
||||
untracked = 'U'
|
||||
return dirtied + untracked
|
||||
ans = dirtied + untracked
|
||||
return ans if ans.strip() else None
|
||||
|
||||
def branch(self):
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user