Correctly eliminate trailing space in :Gpush
Note to self: don't test changes to :Gpush by pushing them.
This commit is contained in:
parent
0d281a2607
commit
26504eecbd
@ -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() . (empty(a:args) ? '' : ' ' . a:args)
|
||||
let &l:makeprg = substitute(s:git_command() . ' ' . a:args, '\s\+$', '', '')
|
||||
execute cd fnameescape(s:repo().tree())
|
||||
if exists(':Make') == 2
|
||||
noautocmd Make
|
||||
|
Loading…
Reference in New Issue
Block a user