commit 3e2d5313222d616f680974dcf78aa387c64fd72b (tree)
parent 4cdeff8c33ec2fe0686324bf1846ce158c452754
Author: Tim Pope <code@tpope.net>
Date: Sun, 11 Jul 2021 23:12:13 -0400
Fix error parsing worktree out of config
Resolves: https://github.com/tpope/vim-fugitive/issues/1788
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)