diff options
author | Rydkin Maxim <maks.rydkin@gmail.com> | 2017-03-18 13:49:14 +0300 |
---|---|---|
committer | Rydkin Maxim <maks.rydkin@gmail.com> | 2017-04-04 21:11:24 +0300 |
commit | 40f67c1da84379e293db14b61dc7390bc4d0a4c4 (patch) | |
tree | 056fd8a67a4e50e298f94b87c47714877b02ddc3 /spec/services | |
parent | 67f27a1c4bb5fa87b65845bf26ef50bb05a09fcd (diff) | |
download | gitlab-ce-40f67c1da84379e293db14b61dc7390bc4d0a4c4.tar.gz |
more brief way of get parent commit
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/ci/create_pipeline_service_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/ci/create_pipeline_service_spec.rb b/spec/services/ci/create_pipeline_service_spec.rb index cd63eeac5fa..a61c17c66f1 100644 --- a/spec/services/ci/create_pipeline_service_spec.rb +++ b/spec/services/ci/create_pipeline_service_spec.rb @@ -40,7 +40,7 @@ describe Ci::CreatePipelineService, services: true do end def previous_commit_sha_from_ref(ref) - project.repository.find_commits(ref: ref, max_count: 2)[1].id + project.commit(ref).parent.sha end before do |