aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJosh Hagins2015-07-10 09:46:35 -0400
committerMike McQuaid2015-09-07 12:05:20 +0100
commitf431e543a5f155fd64d397ae04d269c3907f42b7 (patch)
tree38b007382203bc5c327b969831951ab94254473a /Library/Homebrew/cmd
parent8d2e757253bba2e9a471ca1ff8285df62076db9a (diff)
downloadbrew-f431e543a5f155fd64d397ae04d269c3907f42b7.tar.bz2
update: explicitly no-ff merge and rebase.
This overrides user configuration which may do otherwise. Closes Homebrew/homebrew#41570. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/update.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index 33678db3a..1d4eb5928 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -196,7 +196,8 @@ class Updater
safe_system "git", "config", "core.autocrlf", "false"
args = ["pull"]
- args << "--rebase" if ARGV.include? "--rebase"
+ args << "--ff"
+ args << ((ARGV.include? "--rebase") ? "--rebase" : "--no-rebase")
args += quiet
args << "origin"
# the refspec ensures that 'origin/master' gets updated