Merge pull request #7085 from MikeMcQuaid/extract-core-maintainers

dev-cmd/extract: allow maintainers to extract to core.
This commit is contained in:
Mike McQuaid 2020-02-27 10:56:20 +00:00 committed by GitHub
commit 955947c8dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,8 +111,10 @@ module Homebrew
end
destination_tap = Tap.fetch(args.remaining.second)
odie "Cannot extract formula to homebrew/core!" if destination_tap.core_tap?
odie "Cannot extract formula to the same tap!" if destination_tap == source_tap
unless ARGV.homebrew_developer?
odie "Cannot extract formula to homebrew/core!" if destination_tap.core_tap?
odie "Cannot extract formula to the same tap!" if destination_tap == source_tap
end
destination_tap.install unless destination_tap.installed?
repo = source_tap.path