mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 07:13:52 -05:00
Always set b:git_dir
This makes it possible to tell when detection hasn't happened yet, and is potentially a stepping stone to doing it on the fly.
This commit is contained in:
@@ -2371,8 +2371,8 @@ function! s:TempReadPre(file) abort
|
||||
endif
|
||||
setlocal buftype=nowrite
|
||||
setlocal nomodifiable
|
||||
let b:git_dir = dict.dir
|
||||
if len(dict.dir)
|
||||
let b:git_dir = dict.dir
|
||||
call extend(b:, {'fugitive_type': 'temp'}, 'keep')
|
||||
endif
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user