diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
index 16532e1a9b90e8e80e81ff80f1b7adedeebfc2ed..41477f1b97e8947a635379abf54397b3c6769bda 100644
--- a/plugin/fugitive.vim
+++ b/plugin/fugitive.vim
@@ -1066,7 +1066,7 @@ function! s:Log(cmd,...)
   let dir = getcwd()
   try
     execute cd.'`=s:repo().tree()`'
-    let &grepprg = escape(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