mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 12:53:52 -05:00
Work around slow \\ Windows network path
This commit is contained in:
@@ -116,7 +116,7 @@ function! s:ExtractGitDir(path) abort
|
||||
let ofn = ""
|
||||
let nfn = fn
|
||||
while fn != ofn
|
||||
if filereadable(fn . '/.git/HEAD')
|
||||
if isdirectory(fn) && filereadable(fn . '/.git/HEAD')
|
||||
return s:sub(simplify(fnamemodify(fn . '/.git',':p')),'\W$','')
|
||||
elseif fn =~ '\.git$' && filereadable(fn . '/HEAD')
|
||||
return s:sub(simplify(fnamemodify(fn,':p')),'\W$','')
|
||||
|
||||
Reference in New Issue
Block a user