From bfc1745f3b536f593eb0ea8525ae53a59b91d0d3 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 23 Jul 2018 13:55:40 -0400 Subject: [PATCH] Handle bare repository case when shelling out --- autoload/fugitive.vim | 2 ++ 1 file changed, 2 insertions(+) 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