From a504abb8b8909f5548bb6d4817334f0b4ddf02d8 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 28 May 2022 18:25:20 -0400 Subject: [PATCH] Avoid reusing variable --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index fffe585..d37b9c9 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2288,8 +2288,8 @@ let s:globsubs = { \ '*': '[^/]*', \ '?': '[^/]'} function! fugitive#glob(url, ...) abort - let [dir, commit, glob] = s:DirCommitFile(a:url) - let dirglob = s:GitDir(dir) + let [repo, commit, glob] = s:DirCommitFile(a:url) + let dirglob = s:GitDir(repo) let append = matchstr(glob, '/*$') let glob = substitute(glob, '/*$', '', '') let pattern = '^' . substitute(glob, '/\=\*\*/\=\|/\=\*\|[.?\$]\|^^', '\=get(s:globsubs, submatch(0), "\\" . submatch(0))', 'g')[1:-1] . '$'