mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 12:03:47 -05:00
Fix lack of shell escaping
This commit is contained in:
@@ -1069,7 +1069,7 @@ function! s:BufReadIndex()
|
|||||||
if fnamemodify($GIT_INDEX_FILE !=# '' ? $GIT_INDEX_FILE : b:git_dir . '/index', ':p') ==# expand('%:p')
|
if fnamemodify($GIT_INDEX_FILE !=# '' ? $GIT_INDEX_FILE : b:git_dir . '/index', ':p') ==# expand('%:p')
|
||||||
let indexspec = ''
|
let indexspec = ''
|
||||||
else
|
else
|
||||||
let indexspec = 'GIT_INDEX_FILE='.expand('%').' '
|
let indexspec = 'GIT_INDEX_FILE='.s:shellesc(expand('%')).' '
|
||||||
endif
|
endif
|
||||||
let g:indexspec = indexspec
|
let g:indexspec = indexspec
|
||||||
if b:fugitive_display_format
|
if b:fugitive_display_format
|
||||||
|
|||||||
Reference in New Issue
Block a user