From 19ca61c78c86a2ce6a425aee9b1c6664e5149ea6 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 15 May 2024 12:41:57 -0400 Subject: [PATCH] Support ~ in ssh config include Resolves: https://github.com/tpope/vim-rhubarb/issues/79 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 0a007bc..2815399 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1255,7 +1255,7 @@ function! s:SshParseConfig(into, root, file) abort let host = s:SshParseHost(value) elseif key ==# 'include' for glob in split(value) - if glob !~# '^/' + if glob !~# '^[~/]' let glob = a:root . glob endif for included in reverse(split(glob(glob), "\n"))