motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit e93d45e4ce79d89cf513627e73a58b12cd5905f2 (tree)
parent eafb44a720cfafd7cede88b4d17d4cbc97c535f9
Author: Tim Pope <code@tpope.net>
Date:   Thu, 19 Aug 2021 13:50:42 -0400

Fix constructing Git shell commands

Diffstat:
Mautoload/fugitive.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -673,8 +673,8 @@ function! s:BuildShell(dir, env, git, args) abort call insert(cmd, '--git-dir=' . FugitiveGitPath(a:dir)) else call extend(cmd, ['-C', FugitiveGitPath(tree)], 'keep') - if !s:cpath(tree . '/.git', dir) - call extend(cmd, ['--git-dir=' . FugitiveGitPath(dir)], 'keep') + if !s:cpath(tree . '/.git', a:dir) + call extend(cmd, ['--git-dir=' . FugitiveGitPath(a:dir)], 'keep') endif endif return pre . join(map(a:git + cmd, 's:shellesc(v:val)'))