mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 04:53:45 -05:00
Restore backwards compatible behavior of repo.translate()
This commit is contained in:
@@ -351,7 +351,7 @@ function! s:repo_route(object) dict abort
|
||||
endfunction
|
||||
|
||||
function! s:repo_translate(rev) dict abort
|
||||
return s:Slash(s:Generate(a:rev, self.git_dir))
|
||||
return s:Slash(fugitive#Route(substitute(a:rev, '^/', ':(top)', ''), self.git_dir))
|
||||
endfunction
|
||||
|
||||
function! s:repo_head(...) dict abort
|
||||
|
||||
Reference in New Issue
Block a user