Fix :Git difftool work-tree paths

I don't think the change that this reverts was necessarily wrong,
but this isn't the best time in the release cycle to play whack-a-mole
with unintended consequences.

Closes https://github.com/tpope/vim-fugitive/issues/1732
This commit is contained in:
Tim Pope
2021-04-15 08:56:30 -04:00
parent 1d00a7392b
commit 8686eb17e0

View File

@@ -1080,8 +1080,6 @@ function! fugitive#Find(object, ...) abort
let f = matchstr(rev, ')\zs.*')
if f=~# '^\.\.\=\%(/\|$\)'
let f = simplify(getcwd() . '/' . f)
elseif empty(f)
let f = base
elseif f !~# '^/\|^\%(\a\a\+:\).*\%(//\|::\)' . (has('win32') ? '\|^\a:/' : '')
let f = base . '/' . f
endif