diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-12-06 10:20:50 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-12-06 10:20:50 +0300 |
commit | 444da6f47ed77172471a27386b969e6401d7cf84 (patch) | |
tree | 34b3f740dc9942ed075903f598275f02f456ff14 /spec/workers/git_garbage_collect_worker_spec.rb | |
parent | a52dc7cec70ef97b2755fb9cef7d6b489062310c (diff) |
Fix update_ref! call in the test
Diffstat (limited to 'spec/workers/git_garbage_collect_worker_spec.rb')
-rw-r--r-- | spec/workers/git_garbage_collect_worker_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/workers/git_garbage_collect_worker_spec.rb b/spec/workers/git_garbage_collect_worker_spec.rb index e471a68a49a..2b31efbf631 100644 --- a/spec/workers/git_garbage_collect_worker_spec.rb +++ b/spec/workers/git_garbage_collect_worker_spec.rb @@ -107,7 +107,8 @@ describe GitGarbageCollectWorker do tree: old_commit.tree, parents: [old_commit], ) - project.repository.update_ref!( + GitOperationService.new(nil, project.repository).send( + :update_ref!, "refs/heads/#{SecureRandom.hex(6)}", new_commit_sha, Gitlab::Git::BLANK_SHA |