mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-03 17:03:53 +08:00
Handle .git in file system root
References https://github.com/tpope/vim-fugitive/issues/908
This commit is contained in:
1 parent
c640ee78a8
commit
7ebe5c143d
1 file changed
+3
@@ -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