Commit f6bd4ed3 authored by Jason Plum's avatar Jason Plum

manage_version: fix gating of master branch

Fix output of `branch` function to prevent alteration of appVersion on
the master branch
parent ccc705c9
Pipeline #51934207 failed with stages
in 15 minutes and 17 seconds
......@@ -211,9 +211,11 @@ class VersionUpdater
def get_current_branch
git_command = 'git rev-parse --abbrev-ref HEAD 2>&1'.freeze
output = `#{git_command}`.chomp
output = `#{git_command}`
raise(StandardError.new(output)) unless $?.success?
output.chomp
end
end
......
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