diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 7ec6047..b18b78b 100644 --- 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