From 7f22cc6167b851339730383192f8832e771e7c58 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 23 Jan 2020 03:49:14 -0500 Subject: [PATCH] Revert "Specify shell command, not wrapper, in b:dispatch" This reverts commit 5bcb42164e7b2af3ad1d1ead654e5fb4f06023c2. --- autoload/fugitive.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index e363bc6..2929c5d 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1826,8 +1826,7 @@ function! fugitive#BufReadStatus() abort if push !=# pull call s:AddHeader('Push', push) endif - let tree = s:Tree() - if empty(tree) + if empty(s:Tree()) call s:AddHeader('Bare', 'yes') endif call s:AddSection('Rebasing ' . rebasing_head, rebasing) @@ -1845,8 +1844,7 @@ function! fugitive#BufReadStatus() abort if &bufhidden ==# '' setlocal bufhidden=delete endif - let b:dispatch = '-compiler=git -dir=' . s:fnameescape(FugitiveVimPath(len(tree) ? tree : s:Dir())) . - \ ' ' . s:UserCommand() . ' ' . s:shellesc(s:AskPassArgs(s:Dir())) . ' fetch --all' + let b:dispatch = ':Gfetch --all' call fugitive#MapJumps() call s:Map('n', '-', ":execute Do('Toggle',0)", '') call s:Map('x', '-', ":execute Do('Toggle',1)", '')