Skip to content
Snippets Groups Projects
Commit 5c1f75e9 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Use ci_commits.gl_project_id instead of ci_builds.gl_project_id:

parent cc91f09a
Branches
Tags
1 merge request!5142Add a download buttons for Build Artifacts
Pipeline #
Loading
Loading
@@ -437,10 +437,11 @@ class Project < ActiveRecord::Base
commit_object = commit(ref)
 
if commit_object.nil?
builds.none
Ci::Build.none
else
builds.joins(:pipeline).
merge(Ci::Pipeline.where(sha: commit_object.sha))
Ci::Build.joins(:pipeline).
merge(Ci::Pipeline.where(sha: commit_object.sha,
project: self))
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment