mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -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
|
function! s:repo_tree(...) dict abort
|
||||||
if self.dir() =~# '/\.git$'
|
if self.dir() =~# '/\.git$'
|
||||||
let dir = self.dir()[0:-6]
|
let dir = self.dir()[0:-6]
|
||||||
|
if dir !~# '/'
|
||||||
|
let dir .= '/'
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
let dir = s:configured_tree(self.git_dir)
|
let dir = s:configured_tree(self.git_dir)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user