commit bfc1745f3b536f593eb0ea8525ae53a59b91d0d3 (tree)
parent 93f29cf831261ddc15d2a7d09a662c0749e8f2fb
Author: Tim Pope <code@tpope.net>
Date: Mon, 23 Jul 2018 13:55:40 -0400
Handle bare repository case when shelling out
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -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