Fix escaping in :Gblame

Closes https://github.com/tpope/vim-fugitive/issues/952
This commit is contained in:
Tim Pope
2017-10-21 18:06:41 -04:00
parent 42daa3183b
commit 7c9b87a3c3

View File

@@ -1995,7 +1995,7 @@ function! s:Blame(bang,line1,line2,count,args) abort
let cmd += ['--contents', '-']
endif
let cmd += ['--', s:buffer().path()]
let basecmd = escape(call(s:repo().git_command,cmd,s:repo()),'!')
let basecmd = escape(call(s:repo().git_command,cmd,s:repo()),'!%#')
try
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd' : 'cd'
if !s:repo().bare()