mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-07 12:44:39 +08:00
Attempt to address more Windows slowness (#150)
This commit is contained in:
1 parent
64716b9622
commit
03e138c349
1 file changed
+2
-2
+2
-2
@@ -115,8 +115,8 @@ function! s:ExtractGitDir(path) abort
|
||||
let fn = fnamemodify(path,':s?[\/]$??')
|
||||
let ofn = ""
|
||||
let nfn = fn
|
||||
while fn != ofn
|
||||
if isdirectory(fn) && filereadable(fn . '/.git/HEAD')
|
||||
while fn !=# ofn && fn !=# '/'
|
||||
if 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