From 003f38c6a4d8e3d527e4e1dfeab6fdf05c8ff149 Mon Sep 17 00:00:00 2001
From: Tim Pope <code@tpope.net>
Date: Sun, 4 Nov 2012 17:28:25 -0500
Subject: [PATCH] Escape # in :Glog

Closes #265.
---
 plugin/fugitive.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
index 16532e1a..41477f1b 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
-- 
GitLab