Set b:git_dir in FugitiveEditor buffers

This should make us a bit more robust in the face of things like
symlinks.
This commit is contained in:
Tim Pope
2022-06-07 05:20:16 -04:00
parent 1d6e601298
commit 92c73bb050

View File

@@ -3338,6 +3338,7 @@ function! s:RunEdit(state, tmp, job) abort
endif
endtry
set bufhidden=wipe
call s:InitializeBuffer(a:state)
let bufnr = bufnr('')
let s:edit_jobs[bufnr] = [a:state, a:tmp, a:job, sentinel]
call fugitive#DidChange(a:state.git_dir)