mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 21:03:53 -05:00
Force Vim path normalization in fugitive#Path()
This only matters for use cases where the paths differ by more than just slashes (theoretically possible with mixed WSL setups).
This commit is contained in:
@@ -1682,8 +1682,8 @@ function! fugitive#Path(url, ...) abort
|
|||||||
if empty(a:url)
|
if empty(a:url)
|
||||||
return ''
|
return ''
|
||||||
endif
|
endif
|
||||||
let dir = a:0 > 1 ? s:Dir(a:2) : s:Dir()
|
let dir = FugitiveVimPath(call('s:GitDir', a:000[1:-1]))
|
||||||
let tree = s:Tree(dir)
|
let tree = call('fugitive#Find', [':/'] + a:000[1:-1])
|
||||||
if !a:0
|
if !a:0
|
||||||
return fugitive#Real(a:url)
|
return fugitive#Real(a:url)
|
||||||
elseif a:1 =~# '\.$'
|
elseif a:1 =~# '\.$'
|
||||||
|
|||||||
Reference in New Issue
Block a user