From 110e7ca00ce82f07c3b20c2423974516831f361e Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 15 May 2024 12:46:12 -0400 Subject: [PATCH] Ignore missing ssh include files --- autoload/fugitive.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 2815399..76724e4 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1259,7 +1259,10 @@ function! s:SshParseConfig(into, root, file) abort let glob = a:root . glob endif for included in reverse(split(glob(glob), "\n")) - call extend(lines, readfile(included), 'keep') + try + call extend(lines, readfile(included), 'keep') + catch + endtry endfor endfor elseif len(key) && len(host)