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 c2908b174d4efb5aa80786cdec3a966d7371f75a (tree)
parent b0e38f08dca7dc33664705253e63cb92b3592e99
Author: Tim Pope <code@tpope.net>
Date:   Tue, 19 May 2015 11:12:13 -0400

Support older Git in :Gpull

Closes #645.

Diffstat:
Mplugin/fugitive.vim | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -1176,13 +1176,15 @@ function! s:Merge(cmd, bang, args) abort \ !empty(s:repo().git_chomp('diff-files', '--diff-filter=U'))) let &l:makeprg = g:fugitive_git_executable.' diff-files --name-status --diff-filter=U' else - let &l:makeprg = s:sub(g:fugitive_git_executable.' -c core.editor=false '. - \ a:cmd . (a:args =~# ' \%(--no-edit\|--abort\|-m\)\>' ? '' : ' --edit') . ' ' . a:args, - \ ' *$', '') + let &l:makeprg = s:sub(g:fugitive_git_executable . ' ' . a:cmd . + \ (a:args =~# ' \%(--no-edit\|--abort\|-m\)\>' ? '' : ' --edit') . + \ ' ' . a:args, ' *$', '') endif - if !empty($GIT_EDITOR) + if !empty($GIT_EDITOR) || has('win32') let old_editor = $GIT_EDITOR let $GIT_EDITOR = 'false' + else + let &l:makeprg = 'env GIT_EDITOR=false ' . &l:makeprg endif execute cd fnameescape(s:repo().tree()) silent noautocmd make!