diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-09-12 21:27:59 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-09-12 21:27:59 +0800 |
commit | af7d383675269523ca4c6b7bddf8a34f6054f6af (patch) | |
tree | 5b50e6a9636a8e0ff096b96c3fee12086de264a8 /app | |
parent | 6baf9971db231a2c9923bd4d73e1f59fe255aab8 (diff) | |
download | gitlab-ce-af7d383675269523ca4c6b7bddf8a34f6054f6af.tar.gz |
should show the status of the latest one
Diffstat (limited to 'app')
-rw-r--r-- | app/models/commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index e64fd1e0c1b..0e2ab76d347 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -231,7 +231,7 @@ class Commit def status return @status if defined?(@status) - @status ||= pipelines.status + @status ||= pipelines.order(:id).last.try(:status) end def revert_branch_name |