Fix :Gblame

This commit is contained in:
Tim Pope 2018-07-29 00:17:51 -04:00
parent a8392e0ebb
commit 70c0f132f5

View File

@ -2341,7 +2341,7 @@ function! s:Blame(bang, line1, line2, count, mods, args) abort
let cmd += ['--contents', '-'] let cmd += ['--contents', '-']
endif endif
let cmd += ['--', s:Relative('')] let cmd += ['--', s:Relative('')]
let basecmd = escape(call('s:Prepare', cmd), '!#%') let basecmd = escape(call('s:Prepare', [b:git_dir] + cmd), '!#%')
try try
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd' : 'cd' let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd' : 'cd'
let tree = s:Tree() let tree = s:Tree()