mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03:51 -05:00
Correct the directory separator of Path() on Windows (#1067)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user