mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 12:03:47 -05:00
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.
This commit is contained in:
@@ -1680,6 +1680,10 @@ function! fugitive#BufReadStatus() abort
|
|||||||
let cmd += ['-c', 'GIT_INDEX_FILE=' . amatch]
|
let cmd += ['-c', 'GIT_INDEX_FILE=' . amatch]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if fugitive#GitVersion(2, 15)
|
||||||
|
call add(cmd, '--no-optional-locks')
|
||||||
|
endif
|
||||||
|
|
||||||
let b:fugitive_files = {'Staged': {}, 'Unstaged': {}}
|
let b:fugitive_files = {'Staged': {}, 'Unstaged': {}}
|
||||||
let [staged, unstaged, untracked] = [[], [], []]
|
let [staged, unstaged, untracked] = [[], [], []]
|
||||||
let props = {}
|
let props = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user