mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03:51 -05:00
Respect GIT_CEILING_DIRECTORIES
This commit is contained in:
committed by
Tim Pope
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user