mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 12:03: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) !~# '/$'
|
if url =~# '/$' && s:Slash(a:url) !~# '/$'
|
||||||
let url = url[0:-2]
|
let url = url[0:-2]
|
||||||
endif
|
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)
|
if !empty(argdir) && !s:cpath(s:GitDir(argdir), dir)
|
||||||
let file = ''
|
let file = ''
|
||||||
elseif len(dir) && s:cpath(url[0 : len(dir)]) ==# s:cpath(dir . '/')
|
elseif len(dir) && s:cpath(url[0 : len(dir)]) ==# s:cpath(dir . '/')
|
||||||
|
|||||||
Reference in New Issue
Block a user