mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-17 07:43:44 -05:00
Require core.bare=true for bare repositories
Resolves: https://github.com/tpope/vim-fugitive/issues/1920
This commit is contained in:
@@ -2816,7 +2816,7 @@ function! fugitive#BufReadStatus(...) abort
|
||||
call s:AddHeader('Push', push)
|
||||
endif
|
||||
if empty(s:Tree())
|
||||
if get(fugitive#ConfigGetAll('core.bare', config), 0, 'true') !~# '^\%(false\|no|off\|0\|\)$'
|
||||
if get(fugitive#ConfigGetAll('core.bare', config), 0, '') !~# '^\%(false\|no|off\|0\|\)$'
|
||||
call s:AddHeader('Bare', 'yes')
|
||||
else
|
||||
call s:AddHeader('Error', s:worktree_error)
|
||||
|
||||
Reference in New Issue
Block a user