commit 0d281a26073d27f6f3ece2b0faf6c16b917c2c40 (tree)
parent b2665cc65002c3ebf3aa771bb1b65ea8ef6b57d6
Author: Tim Pope <code@tpope.net>
Date: Sun, 23 Apr 2017 22:32:01 -0400
Eliminate trailing space in :Gpush
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -1641,7 +1641,7 @@ function! s:Dispatch(bang, args)
try
let b:current_compiler = 'git'
let &l:errorformat = s:common_efm
- let &l:makeprg = s:git_command() . ' ' . a:args
+ let &l:makeprg = s:git_command() . (empty(a:args) ? '' : ' ' . a:args)
execute cd fnameescape(s:repo().tree())
if exists(':Make') == 2
noautocmd Make