Commit 865341ac authored by Kamil Trzcinski's avatar Kamil Trzcinski

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

parent ad3be46b
......@@ -46,7 +46,7 @@ def origin_sha
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 @@ def protected_ref?
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