Commit 93d7ce62 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix a bug of before_sha being inproperly evaluated to `checkout_sha`

parent 572d540c
......@@ -46,7 +46,7 @@ module Gitlab
end
def before_sha
checkout_sha || before_sha || Gitlab::Git::BLANK_SHA
before_sha || checkout_sha || Gitlab::Git::BLANK_SHA
end
def protected_ref?
......@@ -54,10 +54,6 @@ module Gitlab
project.protected_for?(ref)
end
end
def error(message)
pipeline.errors.add(:base, message)
end
end
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