Delegate to pipeline instead of commit
This commit is contained in:
parent
08baa9983e
commit
fe5735a860
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue