From 3e2d5313222d616f680974dcf78aa387c64fd72b Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 11 Jul 2021 23:12:13 -0400 Subject: [PATCH] Fix error parsing worktree out of config Resolves: https://github.com/tpope/vim-fugitive/issues/1788 --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 62ae17f..7919532 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -211,7 +211,7 @@ function! s:Tree(path) abort let config = readfile(config_file,'',10) let wt_config = filter(copy(config),'v:val =~# "^\\s*worktree *="') if len(wt_config) == 1 - let worktree = FugitiveVimPath(matchstr(config[0], '= *\zs.*')) + let worktree = FugitiveVimPath(matchstr(wt_config[0], '= *\zs.*')) else call filter(config,'v:val =~# "^\\s*bare *= *false *$"') if len(config)