From 701304c1649d7f2b7e7719d5888184685426e3ee Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 6 Dec 2011 15:57:45 -0500 Subject: [PATCH] Work around .git in 'wildignore' Closes #119. --- plugin/fugitive.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index ee4cde6..9ef3357 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -818,13 +818,13 @@ function! s:Commit(args) abort let args = '--cleanup=strip '.args endif if bufname('%') == '' && line('$') == 1 && getline(1) == '' && !&mod - keepalt edit `=msgfile` + execute 'keepalt edit '.s:fnameescape(msgfile) elseif s:buffer().type() ==# 'index' - keepalt edit `=msgfile` + execute 'keepalt edit '.s:fnameescape(msgfile) execute (search('^#','n')+1).'wincmd+' setlocal nopreviewwindow else - keepalt split `=msgfile` + execute 'keepalt split '.s:fnameescape(msgfile) endif let b:fugitive_commit_arguments = args setlocal bufhidden=delete filetype=gitcommit