Fix lack of shell escaping

This commit is contained in:
Tim Pope 2010-01-09 22:56:52 -05:00
parent 8b3cd645fd
commit 6f4266da7c

View File

@ -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