update: fix --rebase
This commit is contained in:
parent
0b740f51ab
commit
151890148c
@ -148,11 +148,12 @@ class Updater
|
|||||||
# ensure we don't munge line endings on checkout
|
# ensure we don't munge line endings on checkout
|
||||||
safe_system "git", "config", "core.autocrlf", "false"
|
safe_system "git", "config", "core.autocrlf", "false"
|
||||||
|
|
||||||
args = ["pull", "origin"]
|
args = ["pull"]
|
||||||
args << "--rebase" if ARGV.include? "--rebase"
|
args << "--rebase" if ARGV.include? "--rebase"
|
||||||
|
args += quiet
|
||||||
|
args << "origin"
|
||||||
# the refspec ensures that 'origin/master' gets updated
|
# the refspec ensures that 'origin/master' gets updated
|
||||||
args << "refs/heads/master:refs/remotes/origin/master"
|
args << "refs/heads/master:refs/remotes/origin/master"
|
||||||
args += quiet
|
|
||||||
|
|
||||||
reset_on_interrupt { safe_system "git", *args }
|
reset_on_interrupt { safe_system "git", *args }
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user