mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-10 22:11:58 +08:00
@@ -117,7 +117,7 @@ function! fugitive#extract_git_dir(path) abort
|
|||||||
return dir
|
return dir
|
||||||
elseif type ==# 'link' && fugitive#is_git_dir(dir)
|
elseif type ==# 'link' && fugitive#is_git_dir(dir)
|
||||||
return resolve(dir)
|
return resolve(dir)
|
||||||
elseif type !=# ''
|
elseif type !=# '' && filereadable(dir)
|
||||||
let line = readfile(dir, 1)[0]
|
let line = readfile(dir, 1)[0]
|
||||||
if line =~# '^gitdir: ' && fugitive#is_git_dir(line[8:-1])
|
if line =~# '^gitdir: ' && fugitive#is_git_dir(line[8:-1])
|
||||||
return line[8:-1]
|
return line[8:-1]
|
||||||
|
|||||||
Reference in New Issue
Block a user