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