Merge pull request #7409 from MikeMcQuaid/brew-pull-args

pull: fix head_revision definition.
This commit is contained in:
Mike McQuaid 2020-04-20 20:12:09 +01:00 committed by GitHub
commit cc74c4a742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ module Homebrew
old_versions = current_versions_from_info_external(patch_changes[:formulae].first) if is_bumpable
patch_puller.apply_patch
end_revision = head_revision(url)
end_revision = `git rev-parse --short HEAD`.strip
changed_formulae_names = []
@ -197,10 +197,6 @@ module Homebrew
end
end
def head_revision(_url, fetched)
Utils.popen_read("git", "rev-parse", fetched ? "FETCH_HEAD" : "HEAD").strip
end
class PatchPuller
attr_reader :base_url
attr_reader :patch_url