From 584c839dcaf466b9f0a925e52b844a8db99f2114 Mon Sep 17 00:00:00 2001 From: Seeker Date: Tue, 15 Sep 2020 10:31:40 -0700 Subject: [PATCH] bump-cask-pr: fix branch name for versions with colon Replace commas and colons with hyphens --- Library/Homebrew/dev-cmd/bump-cask-pr.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/bump-cask-pr.rb b/Library/Homebrew/dev-cmd/bump-cask-pr.rb index 6bbf7235ed..3d112b0088 100644 --- a/Library/Homebrew/dev-cmd/bump-cask-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-cask-pr.rb @@ -193,7 +193,7 @@ module Homebrew sourcefile_path: cask.sourcefile_path, old_contents: old_contents, origin_branch: origin_branch, - branch_name: "bump-#{cask.token}-#{new_version}", + branch_name: "bump-#{cask.token}-#{new_version.tr(",:", "-")}", commit_message: "Update #{cask.token} from #{old_version} to #{new_version}", previous_branch: previous_branch, tap: cask.tap,