From 8165eada59fb78502ba5dd0f3b3fd01285db834f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 23 Jun 2022 17:54:30 -0400 Subject: [PATCH] Fix Projectionist root for .git/info/projections.json --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 05de5e4..348ab01 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -527,7 +527,7 @@ endif function! s:ProjectionistDetect() abort let file = s:Slash(get(g:, 'projectionist_file', '')) let dir = FugitiveExtractGitDir(file) - let base = get(matchlist(file, s:dir_commit_file), 1, '') + let base = matchstr(file, '^fugitive://.\{-\}//\x\+') if empty(base) let base = s:Tree(dir) endif