Skip to content
Snippets Groups Projects
Unverified Commit d99ac0b6 authored by Dawid Dziurla's avatar Dawid Dziurla Committed by GitHub
Browse files

Merge pull request #8353 from jjergus/bump-fix

bump-formula-pr: fix regression when formula.tap is nil
parents 99109738 8fb6218d
No related branches found
No related tags found
No related merge requests found
......@@ -105,8 +105,10 @@ module Homebrew
end
end
end
origin_branch = Utils.popen_read("git", "-C", formula.tap.path.to_s, "symbolic-ref", "-q", "--short",
"refs/remotes/origin/HEAD").chomp.presence
if formula.tap
origin_branch = Utils.popen_read("git", "-C", formula.tap.path.to_s, "symbolic-ref", "-q", "--short",
"refs/remotes/origin/HEAD").chomp.presence
end
origin_branch ||= "origin/master"
[formula.tap&.full_name, origin_branch, "-"]
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment