summaryrefslogtreecommitdiff
path: root/lib/api/commit_statuses.rb
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-12-15 16:24:14 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-12-15 16:24:14 +0100
commitd27befe64dd0d55bec2472ef641c4733cc669215 (patch)
tree623db3d658408b42d8b25e923eb9ccf68016d9fa /lib/api/commit_statuses.rb
parent447e598ec4ee0d2fae29303d4359ffe6a06d3ba5 (diff)
parent4493d3fd556af6ded47f940f258b0fc26c9eb3e8 (diff)
downloadgitlab-ce-d27befe64dd0d55bec2472ef641c4733cc669215.tar.gz
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into workhorse-passthrough
Diffstat (limited to 'lib/api/commit_statuses.rb')
-rw-r--r--lib/api/commit_statuses.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/commit_statuses.rb b/lib/api/commit_statuses.rb
index 2c0596c9dfb..1162271f5fc 100644
--- a/lib/api/commit_statuses.rb
+++ b/lib/api/commit_statuses.rb
@@ -53,7 +53,7 @@ module API
name = params[:name] || params[:context]
status = GenericCommitStatus.running_or_pending.find_by(commit: ci_commit, name: name, ref: params[:ref])
- status ||= GenericCommitStatus.new(commit: ci_commit, user: current_user)
+ status ||= GenericCommitStatus.new(project: @project, commit: ci_commit, user: current_user)
status.update(attrs)
case params[:state].to_s