diff --git a/Library/Homebrew/dev-cmd/pull.rb b/Library/Homebrew/dev-cmd/pull.rb index d7d53f1d39..4f1f988569 100644 --- a/Library/Homebrew/dev-cmd/pull.rb +++ b/Library/Homebrew/dev-cmd/pull.rb @@ -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