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
|
endfunction
|
||||||
|
|
||||||
function! s:repo_translate(rev) dict abort
|
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
|
endfunction
|
||||||
|
|
||||||
function! s:repo_head(...) dict abort
|
function! s:repo_head(...) dict abort
|
||||||
|
|||||||
Reference in New Issue
Block a user