diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index aa087d9..34a1e23 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1901,7 +1901,7 @@ function! s:ReplaceCmd(cmd,...) abort endif endif if &shell =~# 'cmd' - call system('cmd /c "'.prefix.a:cmd.' > '.tmp.'"') + call system('cmd /c "'.prefix.s:gsub(a:cmd,'[<>]', '^^^&').' > '.tmp.'"') else call system(' ('.prefix.a:cmd.' > '.tmp.') ') endif