Commit 3d6bb879 authored by Martin Lowe's avatar Martin Lowe 🇨🇦 Committed by Martin Lowe
Browse files

Add nil/empty check for default branch val in rb script

parent e6defe9b
......@@ -69,6 +69,10 @@ end
## required for proper cherry-picking of new commits
default_branch = project_json_data['default_branch']
if (default_branch.nil? || default_branch.empty?) then
puts "Could not find default branch, assuming new project and bypassing ECA check."
exit 0
end
default_branch_head_ref = "refs/heads/#{default_branch}"
## Get all commits visible relative to default branch (anything new and not merged in)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment