mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 03:23:46 -05:00
Handle .git in file system root
References https://github.com/tpope/vim-fugitive/issues/908
This commit is contained in:
@@ -298,6 +298,9 @@ endfunction
|
||||
function! s:repo_tree(...) dict abort
|
||||
if self.dir() =~# '/\.git$'
|
||||
let dir = self.dir()[0:-6]
|
||||
if dir !~# '/'
|
||||
let dir .= '/'
|
||||
endif
|
||||
else
|
||||
let dir = s:configured_tree(self.git_dir)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user