Expire b:git_dir on buffer rename

This commit is contained in:
Tim Pope
2022-06-03 20:33:48 -04:00
parent f60fc79e53
commit 5920f807f5

View File

@@ -690,6 +690,7 @@ augroup fugitive
autocmd BufNewFile,BufReadPost * call FugitiveDetect(+expand('<abuf>'), 0) autocmd BufNewFile,BufReadPost * call FugitiveDetect(+expand('<abuf>'), 0)
autocmd FileType netrw call FugitiveDetect(+expand('<abuf>'), 0) autocmd FileType netrw call FugitiveDetect(+expand('<abuf>'), 0)
autocmd BufFilePost * unlet! b:git_dir
autocmd FileType git autocmd FileType git
\ call fugitive#MapCfile() \ call fugitive#MapCfile()