diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 23ceb97e7afccab2feddfe04388c54036d97fcad..3a9333318484418973a3371b9dbfa0f880f9b6db 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -690,6 +690,7 @@ augroup fugitive autocmd BufNewFile,BufReadPost * call FugitiveDetect(+expand('<abuf>'), 0) autocmd FileType netrw call FugitiveDetect(+expand('<abuf>'), 0) + autocmd BufFilePost * unlet! b:git_dir autocmd FileType git \ call fugitive#MapCfile()