From a1b5c1d2ae2facb4b1b714be28a8030dbf0adae2 Mon Sep 17 00:00:00 2001 From: Brandon Dunne Date: Wed, 4 Oct 2023 14:07:49 -0400 Subject: [PATCH] Fix missing git_ref default value --- bin/build.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/build.rb b/bin/build.rb index 55d6e184..eb53d618 100755 --- a/bin/build.rb +++ b/bin/build.rb @@ -7,7 +7,7 @@ opts = Optimist.options do opt :build_type, "nightly or release", :type => :string, :default => "nightly" - opt :git_ref, "Git ref to use (default: git_ref specified in options.yml)", :type => :string + opt :git_ref, "Git ref to use (default: git_ref specified in options.yml)", :type => :string, :default => ManageIQ::RPMBuild::OPTIONS.repos.ref opt :update_rpm_repo, "Publish the resulting RPMs to the public repository?" end Optimist.die "build type must be either nightly or release" unless %w[nightly release].include?(opts[:build_type])