mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 04:23:46 -05:00
@@ -105,8 +105,8 @@ function! fugitive#is_git_dir(path) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! fugitive#extract_git_dir(path) abort
|
function! fugitive#extract_git_dir(path) abort
|
||||||
if s:shellslash(a:path) =~? '^fugitive://.*//'
|
if s:shellslash(a:path) =~# '^fugitive://.*//'
|
||||||
return matchstr(a:path,'fugitive://\zs.\{-\}\ze//')
|
return matchstr(s:shellslash(a:path), '\C^fugitive://\zs.\{-\}\ze//')
|
||||||
endif
|
endif
|
||||||
let root = s:shellslash(simplify(fnamemodify(a:path,':p:s?[\/]$??')))
|
let root = s:shellslash(simplify(fnamemodify(a:path,':p:s?[\/]$??')))
|
||||||
let previous = ""
|
let previous = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user