From 5298448e8895e70c401bbf394b8aa948135dd261 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 11 Jul 2012 07:26:42 -0400 Subject: [PATCH] Fix :Glog on Windows Closes #199. --- plugin/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index a08d57d..f968fa7 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1006,7 +1006,7 @@ function! s:Log(cmd,...) let path = '' endif let cmd = ['--no-pager', 'log', '--no-color'] - let cmd += [escape('--pretty=format:fugitive://'.s:repo().dir().'//%H'.path.'::'.g:fugitive_summary_format,'%')] + let cmd += ['--pretty=format:fugitive://'.s:repo().dir().'//%H'.path.'::'.g:fugitive_summary_format] if empty(filter(a:000[0 : index(a:000,'--')],'v:val !~# "^-"')) if s:buffer().commit() =~# '\x\{40\}' let cmd += [s:buffer().commit()] @@ -1024,7 +1024,7 @@ function! s:Log(cmd,...) let dir = getcwd() try execute cd.'`=s:repo().tree()`' - let &grepprg = call(s:repo().git_command,cmd,s:repo()) + let &grepprg = escape(call(s:repo().git_command,cmd,s:repo()),'%') let &grepformat = '%f::%m' exe a:cmd finally