diff --git a/Library/Homebrew/formula_creator.rb b/Library/Homebrew/formula_creator.rb index f776b76a9c..d8e2234a86 100644 --- a/Library/Homebrew/formula_creator.rb +++ b/Library/Homebrew/formula_creator.rb @@ -93,7 +93,11 @@ module Homebrew if @github @desc = @github["description"] - @homepage = @github["homepage"] + @homepage = if @github["homepage"].empty? + "https://github.com/#{@github["full_name"]}" + else + @github["homepage"] + end @license = @github["license"]["spdx_id"] if @github["license"] end end