diff options
author | Ted Hogan <ted.hogan17@gmail.com> | 2015-12-29 11:25:46 -0700 |
---|---|---|
committer | Ted Hogan <ted.hogan17@gmail.com> | 2015-12-29 11:25:46 -0700 |
commit | 9fc6df512b53ff0e589bc6be7932da8ecfec4033 (patch) | |
tree | 6d356b79b323c2efb7c4d2c92aff2cdfd7c17358 /lib/api/commit_statuses.rb | |
parent | 6e6a99061dbec4bb45a398a03e8a13a084e44035 (diff) | |
parent | eeba266e3d45f2e82f84bd3aab85195c890efb89 (diff) | |
download | gitlab-ce-9fc6df512b53ff0e589bc6be7932da8ecfec4033.tar.gz |
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into wipMergeSpacing
Diffstat (limited to 'lib/api/commit_statuses.rb')
-rw-r--r-- | lib/api/commit_statuses.rb | 2 |
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 |