From f6acae50ea4d8ec1bb1497cb886d80298b54831b Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 27 Oct 2019 18:53:19 -0400 Subject: [PATCH] Improve robustness of status --porcelain=v1 parsing References https://github.com/tpope/vim-fugitive/issues/1388 --- autoload/fugitive.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index d0324e7..d9c118e 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1673,6 +1673,9 @@ function! fugitive#BufReadStatus() abort throw 'fugitive: ' . message endif + while get(output, 0, '') =~# '^\l\+:' + call remove(output, 0) + endwhile let head = matchstr(output[0], '^## \zs\S\+\ze\%($\| \[\)') let pull = '' if head =~# '\.\.\.'