1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] I see no harm in this, allow it

01feb40283
This commit is contained in:
David Rodríguez 2021-10-08 13:07:07 +02:00 committed by Hiroshi SHIBATA
parent 991a3aad05
commit 91f794b516

View file

@ -554,7 +554,6 @@ module Spec
source = options[:source] || "git@#{libpath}"
if branch = options[:branch]
raise "You can't specify `master` as the branch" if branch == "master"
@context.git("checkout -b #{Shellwords.shellescape(branch)}", libpath)
elsif tag = options[:tag]
@context.git("tag #{Shellwords.shellescape(tag)}", libpath)