Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-03 14:34:38 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-06-03 14:34:38 +0300
commitfe5735a8602b286953477eff5c58ce88b0054c7d (patch)
treede695b7b5d4174ee3c666bb04b7b732f215ec8d1 /app
parent08baa9983ee586c10b4fa28f68b10ba8e7807125 (diff)
Delegate to pipeline instead of commit
Diffstat (limited to 'app')
-rw-r--r--app/models/commit_status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb
index 98a8b541e96..e53c483b904 100644
--- a/app/models/commit_status.rb
+++ b/app/models/commit_status.rb
@@ -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