Respect GIT_CEILING_DIRECTORIES
This commit is contained in:
parent
546a6bf219
commit
8f0b8edfbd
@ -136,6 +136,9 @@ function! fugitive#extract_git_dir(path) abort
|
|||||||
" checking for them since such checks are extremely slow.
|
" checking for them since such checks are extremely slow.
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
|
if index(split($GIT_CEILING_DIRECTORIES, ':'), root) >= 0
|
||||||
|
break
|
||||||
|
endif
|
||||||
let dir = s:sub(root, '[\/]$', '') . '/.git'
|
let dir = s:sub(root, '[\/]$', '') . '/.git'
|
||||||
let type = getftype(dir)
|
let type = getftype(dir)
|
||||||
if type ==# 'dir' && fugitive#is_git_dir(dir)
|
if type ==# 'dir' && fugitive#is_git_dir(dir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user