mirror of
https://github.com/powerline/powerline.git
synced 2025-07-31 01:35:40 +02:00
Don’t raise an exception when encountered untracked file
This commit is contained in:
parent
332dc45bf9
commit
424da8b573
@ -25,7 +25,10 @@ try:
|
||||
(except for merge statuses as they are not supported by libgit2).
|
||||
'''
|
||||
if path:
|
||||
try:
|
||||
status = self._repo().status_file(path)
|
||||
except KeyError, ValueError:
|
||||
return None
|
||||
|
||||
if status == git.GIT_STATUS_CURRENT:
|
||||
return None
|
||||
|
Loading…
x
Reference in New Issue
Block a user