Use --no-rebase
option on git pull
(#64)
This commit is contained in:
parent
2f9a94e8c0
commit
49851436ff
4
plug.vim
4
plug.vim
|
@ -670,7 +670,7 @@ function! s:update_serial(pull, todo)
|
||||||
if valid
|
if valid
|
||||||
let result = a:pull ?
|
let result = a:pull ?
|
||||||
\ s:system(
|
\ s:system(
|
||||||
\ printf('git checkout -q %s 2>&1 && git pull origin %s 2>&1 && git submodule update --init --recursive 2>&1',
|
\ printf('git checkout -q %s 2>&1 && git pull --no-rebase origin %s 2>&1 && git submodule update --init --recursive 2>&1',
|
||||||
\ s:shellesc(spec.branch), s:shellesc(spec.branch))) : 'Already installed'
|
\ s:shellesc(spec.branch), s:shellesc(spec.branch))) : 'Already installed'
|
||||||
let error = a:pull ? v:shell_error != 0 : 0
|
let error = a:pull ? v:shell_error != 0 : 0
|
||||||
else
|
else
|
||||||
|
@ -882,7 +882,7 @@ function! s:update_parallel(pull, todo, threads)
|
||||||
else
|
else
|
||||||
if pull
|
if pull
|
||||||
log.call name, 'Updating ...', :update
|
log.call name, 'Updating ...', :update
|
||||||
bt.call "#{cd} #{dir} && git checkout -q #{branch} 2>&1 && (git pull origin #{branch} #{progress} 2>&1 && #{subm})", name, :update
|
bt.call "#{cd} #{dir} && git checkout -q #{branch} 2>&1 && (git pull --no-rebase origin #{branch} #{progress} 2>&1 && #{subm})", name, :update
|
||||||
else
|
else
|
||||||
[true, skip]
|
[true, skip]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user