summaryrefslogtreecommitdiff
path: root/app/models/ci/commit.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-10-12 22:34:59 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-10-12 22:34:59 +0200
commit766da5fa7bdded8a333a758d7b172533ade5a934 (patch)
tree182e1371f5504d7f98f5568db9fc09e657b9cebb /app/models/ci/commit.rb
parentdaca1c6511c3a09d5f0c33a8c4d29487e668afc2 (diff)
downloadgitlab-ce-766da5fa7bdded8a333a758d7b172533ade5a934.tar.gz
Fix broken matrix_for_ref?
Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
Diffstat (limited to 'app/models/ci/commit.rb')
-rw-r--r--app/models/ci/commit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/commit.rb b/app/models/ci/commit.rb
index f6fc4645947..68864edfbbf 100644
--- a/app/models/ci/commit.rb
+++ b/app/models/ci/commit.rb
@@ -189,7 +189,7 @@ module Ci
end
def matrix_for_ref?(ref)
- builds_without_retry_for_ref(ref).size > 1
+ latest_builds_for_ref(ref).size > 1
end
def config_processor