Merge pull request #8151 from SeekingMeaning/bump-formula-pr/branch-name

bump-formula-pr: add `bump-` prefix to branch
This commit is contained in:
Seeker 2020-07-31 10:29:02 -07:00 committed by GitHub
commit dbe8453855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -339,7 +339,7 @@ module Homebrew
run_audit(formula, alias_rename, old_contents)
formula.path.parent.cd do
branch = "#{formula.name}-#{new_formula_version}"
branch = "bump-#{formula.name}-#{new_formula_version}"
git_dir = Utils.popen_read("git rev-parse --git-dir").chomp
shallow = !git_dir.empty? && File.exist?("#{git_dir}/shallow")
changed_files = [formula.path]