mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-07 12:44:39 +08:00
1 parent
bc3ffa6b44
commit
24e9b492fe
1 file changed
+2
-2
+2
-2
@@ -105,8 +105,8 @@ function! fugitive#is_git_dir(path) abort
|
||||
endfunction
|
||||
|
||||
function! fugitive#extract_git_dir(path) abort
|
||||
if s:shellslash(a:path) =~? '^fugitive://.*//'
|
||||
return matchstr(a:path,'fugitive://\zs.\{-\}\ze//')
|
||||
if s:shellslash(a:path) =~# '^fugitive://.*//'
|
||||
return matchstr(s:shellslash(a:path), '\C^fugitive://\zs.\{-\}\ze//')
|
||||
endif
|
||||
let root = s:shellslash(simplify(fnamemodify(a:path,':p:s?[\/]$??')))
|
||||
let previous = ""
|
||||
|
||||
Reference in new issue
Block a user