Handle bare repository case when shelling out

This commit is contained in:
Tim Pope
2018-07-23 13:55:40 -04:00
parent 93f29cf831
commit bfc1745f3b

View File

@@ -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