diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2018-03-21 13:08:56 -0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2018-03-22 11:39:20 -0300 |
commit | 04b8e00feb6a06bfef3903a9e03d24296c4734a6 (patch) | |
tree | ef7e3267da40bb33db73d285fd14c26ed4661e2d /app | |
parent | 22fc4863d33ad68ab65cd74182741e9a7e6d316f (diff) | |
download | gitlab-ce-04b8e00feb6a06bfef3903a9e03d24296c4734a6.tar.gz |
Use porcelain commit lookup method on CI::CreatePipelineServiceci-pipeline-commit-lookup
Before we were using a "plumbing" Gitlab::Git method that does not go
through Gitaly migration checking.
Diffstat (limited to 'app')
-rw-r--r-- | app/services/ci/create_pipeline_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/create_pipeline_service.rb b/app/services/ci/create_pipeline_service.rb index 3b3d9239086..ad27f320853 100644 --- a/app/services/ci/create_pipeline_service.rb +++ b/app/services/ci/create_pipeline_service.rb @@ -65,7 +65,7 @@ module Ci project.pipelines .where(ref: pipeline.ref) .where.not(id: pipeline.id) - .where.not(sha: project.repository.sha_from_ref(pipeline.ref)) + .where.not(sha: project.commit(pipeline.ref).try(:id)) .created_or_pending end |