diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 10c0e79..5be39f4 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1846,18 +1846,7 @@ function! fugitive#Find(object, ...) abort elseif rev =~# '^:[0-3]:' let f = s:PathJoin(urlprefix, rev[1] . '/' . rev[3:-1]) elseif rev ==# ':' - let fdir = simplify(FugitiveActualDir(dir) . '/') - let f = fdir . 'index' - if !s:cpath(dir . '/', fdir) - let f = urlprefix - elseif len($GIT_INDEX_FILE) - let index_dir = substitute(s:GitIndexFileEnv(), '[^/]\+$', '', '') - if s:cpath(index_dir, fdir) - let f = s:GitIndexFileEnv() - elseif s:cpath(resolve(index_dir), fdir) - let f = resolve(s:GitIndexFileEnv()) - endif - endif + let f = urlprefix elseif rev =~# '^:(\%(top\|top,literal\|literal,top\|literal\))' let f = matchstr(rev, ')\zs.*') if f=~# '^\.\.\=\%(/\|$\)'