Commit fe5735a8 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Delegate to pipeline instead of commit

parent 08baa998
......@@ -52,7 +52,7 @@ class CommitStatus < ActiveRecord::Base
end
end
delegate :sha, :short_sha, to: :commit
delegate :sha, :short_sha, to: :pipeline
def before_sha
pipeline.before_sha || Gitlab::Git::BLANK_SHA
......
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