diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-24 21:52:17 +1000 |
---|---|---|
committer | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2020-08-24 11:53:17 +0000 |
commit | 7ebb8343d1fd5a736e01d0b358ab3036cf8a8495 (patch) | |
tree | cadff0c0ddae91905f1c755c44bf6220ec275565 | |
parent | 42479a75afab373913da60a09ca00aa1fe313560 (diff) |
ignore warning messages about files when obtaining file statuses
-rw-r--r-- | pkg/commands/git.go | 4 |
1 files changed, 4 insertions, 0 deletions
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] |