mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 05:13:53 -05:00
Fix erroneous check for //objects
This was particularly detrimental on Windows, where it caused a slow network lookup. Closes #210.
This commit is contained in:
@@ -100,7 +100,7 @@ let s:abstract_prototype = {}
|
||||
" Initialization {{{1
|
||||
|
||||
function! fugitive#is_git_dir(path) abort
|
||||
let path = a:path . '/'
|
||||
let path = s:sub(a:path, '[\/]$', '') . '/'
|
||||
return isdirectory(path.'objects') && isdirectory(path.'refs') && getfsize(path.'HEAD') > 10
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user