diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-07-18 11:12:57 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-07-18 11:12:57 +0000 |
commit | 5c651daa97b57478f39f252adb7562c31b27ebe7 (patch) | |
tree | cf71488a639749fc9db07fa4026e880941958f9b /spec/migrations | |
parent | af6551f33b45a0063e20ddfa7f711842879b3a75 (diff) | |
download | gitlab-ce-5c651daa97b57478f39f252adb7562c31b27ebe7.tar.gz |
Remove unreachable Git code
Diffstat (limited to 'spec/migrations')
-rw-r--r-- | spec/migrations/migrate_process_commit_worker_jobs_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/migrations/migrate_process_commit_worker_jobs_spec.rb b/spec/migrations/migrate_process_commit_worker_jobs_spec.rb index ac34efa4f9d..a30e6c23ac9 100644 --- a/spec/migrations/migrate_process_commit_worker_jobs_spec.rb +++ b/spec/migrations/migrate_process_commit_worker_jobs_spec.rb @@ -6,11 +6,12 @@ require Rails.root.join('db', 'migrate', '20161124141322_migrate_process_commit_ describe MigrateProcessCommitWorkerJobs do let(:project) { create(:project, :legacy_storage, :repository) } # rubocop:disable RSpec/FactoriesInMigrationSpecs let(:user) { create(:user) } # rubocop:disable RSpec/FactoriesInMigrationSpecs - let(:commit) do + let(:rugged) do Gitlab::GitalyClient::StorageSettings.allow_disk_access do - project.commit.raw.rugged_commit + project.repository.rugged end end + let(:commit) { rugged.rev_parse(project.commit.id) } describe 'Project' do describe 'find_including_path' do |