commit 8e90d82eb4f4bd71de1dafd5f3ae4bfaca1a79bd (tree)
parent 1c1014a0464cfb4985b6f913381a2a7a2f7b87bd
Author: Tim Pope <code@tpope.net>
Date: Sat, 1 Feb 2020 10:49:35 -0500
Use --no-optional-locks for :Gstatus
This clears up some intermittent errors during :Git rebase, although I
must admit I don't really understand why, as the status reload shouldn't
be happening at the same time :Git is running.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -1680,6 +1680,10 @@ function! fugitive#BufReadStatus() abort
let cmd += ['-c', 'GIT_INDEX_FILE=' . amatch]
endif
+ if fugitive#GitVersion(2, 15)
+ call add(cmd, '--no-optional-locks')
+ endif
+
let b:fugitive_files = {'Staged': {}, 'Unstaged': {}}
let [staged, unstaged, untracked] = [[], [], []]
let props = {}