Merge pull request #7409 from MikeMcQuaid/brew-pull-args
pull: fix head_revision definition.
This commit is contained in:
commit
cc74c4a742
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user