pull: fix --legacy when pulling bottle from new repo

This commit is contained in:
Xu Cheng 2016-04-03 11:46:21 +08:00
parent ade39af247
commit df5bd0b796

View File

@ -307,7 +307,7 @@ module Homebrew
# Fall back to three-way merge if patch does not apply cleanly
patch_args << "-3"
patch_args << "-p2" if ARGV.include?("--legacy")
patch_args << "-p2" if ARGV.include?("--legacy") && !base_url.include?("BrewTestBot/homebrew-core")
patch_args << patchpath
start_revision = `git rev-parse HEAD`.strip