mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Handle bare repository case when shelling out
This commit is contained in:
@@ -128,6 +128,8 @@ function! s:TreeChomp(...) abort
|
||||
else
|
||||
let args = ['-C', tree] + args
|
||||
endif
|
||||
else
|
||||
let args = ['--git-dir=' . b:git_dir] . args
|
||||
endif
|
||||
return s:sub(s:System(call('fugitive#Prepare', args)),'\n$','')
|
||||
finally
|
||||
|
||||
Reference in New Issue
Block a user