From 7ebb8343d1fd5a736e01d0b358ab3036cf8a8495 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Mon, 24 Aug 2020 21:52:17 +1000 Subject: ignore warning messages about files when obtaining file statuses --- pkg/commands/git.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/commands/git.go b/pkg/commands/git.go index 64a4aa9d1..e8bc25777 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -242,6 +242,10 @@ func (c *GitCommand) GetStatusFiles(opts GetStatusFileOptions) []*File { files := []*File{} for _, statusString := range statusStrings { + if strings.HasPrefix(statusString, "warning") { + c.Log.Warning(statusString) + continue + } change := statusString[0:2] stagedChange := change[0:1] unstagedChange := statusString[1:2] -- cgit v1.2.3