mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Require core.bare=true for bare repositories
Resolves: https://github.com/tpope/vim-fugitive/issues/1920
This commit is contained in:
@@ -327,8 +327,8 @@ function! s:Tree(path) abort
|
||||
if len(wt_config) == 1
|
||||
let worktree = FugitiveVimPath(matchstr(wt_config[0], '= *\zs.*'))
|
||||
else
|
||||
call filter(config,'v:val =~# "^\\s*bare *= *false *$"')
|
||||
if len(config)
|
||||
call filter(config,'v:val =~# "^\\s*bare *= *true *$"')
|
||||
if empty(config)
|
||||
let s:worktree_for_dir[dir] = 0
|
||||
endif
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user