From 6f4266da7c35374be224c1194bf2e222421eab0c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 9 Jan 2010 22:56:52 -0500 Subject: [PATCH] Fix lack of shell escaping --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 92c63c6..8ceb737 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1069,7 +1069,7 @@ function! s:BufReadIndex() if fnamemodify($GIT_INDEX_FILE !=# '' ? $GIT_INDEX_FILE : b:git_dir . '/index', ':p') ==# expand('%:p') let indexspec = '' else - let indexspec = 'GIT_INDEX_FILE='.expand('%').' ' + let indexspec = 'GIT_INDEX_FILE='.s:shellesc(expand('%')).' ' endif let g:indexspec = indexspec if b:fugitive_display_format