diff --git a/Library/Homebrew/formula_creator.rb b/Library/Homebrew/formula_creator.rb index 609d23e8d7..bc9acfbeec 100644 --- a/Library/Homebrew/formula_creator.rb +++ b/Library/Homebrew/formula_creator.rb @@ -87,7 +87,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