commit fb32927ff56d8cbbb45d360691161908df54551c (tree)
parent 22a843f8e6c0763373a9928eec5ca9e1824e3f16
Author: Tim Pope <code@tpope.net>
Date: Sun, 22 May 2022 22:25:54 -0400
Use correct normalization of URL in fugitive#Path()
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -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 . '/')