Skip to content
Snippets Groups Projects
Commit 7d30e444 authored by Ches Martin's avatar Ches Martin Committed by Adam Vandenberg
Browse files

brew-create: don't break when given --set-version


Since 9f2782812cbaf2, specifying a version breaks with:

    Error: undefined method `detected_from_url?' for "1.2.2":String

Signed-off-by: default avatarAdam Vandenberg <flangy@gmail.com>
parent ba968516
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,9 @@ class FormulaCreator
else
@path = Formula.path name
end
if @version.nil?
if @version
@version = Version.new(@version)
else
@version = Pathname.new(url).version
end
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