Correct the directory separator of Path() on Windows (#1067)

This commit is contained in:
Ryo Susami
2018-07-28 14:50:51 +09:00
committed by Tim Pope
parent c68fb3c83a
commit 6eadff1107

View File

@@ -522,7 +522,7 @@ function! fugitive#Path(url, ...) abort
if !a:0 if !a:0
return fugitive#Real(a:url) return fugitive#Real(a:url)
endif endif
let url = fnamemodify(a:url, ':p') let url = s:shellslash(fnamemodify(a:url, ':p'))
let dir = a:0 > 1 ? a:2 : get(b:, 'git_dir', '') let dir = a:0 > 1 ? a:2 : get(b:, 'git_dir', '')
let tree = FugitiveTreeForGitDir(dir) let tree = FugitiveTreeForGitDir(dir)
let [argdir, commit, file] = s:DirCommitFile(a:url) let [argdir, commit, file] = s:DirCommitFile(a:url)