mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Use correct normalization of URL in fugitive#Path()
This commit is contained in:
@@ -1711,7 +1711,7 @@ function! fugitive#Path(url, ...) abort
|
||||
if url =~# '/$' && s:Slash(a:url) !~# '/$'
|
||||
let url = url[0:-2]
|
||||
endif
|
||||
let [argdir, commit, file] = s:DirCommitFile(a:url)
|
||||
let [argdir, commit, file] = s:DirCommitFile(url)
|
||||
if !empty(argdir) && !s:cpath(s:GitDir(argdir), dir)
|
||||
let file = ''
|
||||
elseif len(dir) && s:cpath(url[0 : len(dir)]) ==# s:cpath(dir . '/')
|
||||
|
||||
Reference in New Issue
Block a user