Commit 444da6f4 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Fix update_ref! call in the test

parent a52dc7ce
...@@ -107,7 +107,8 @@ describe GitGarbageCollectWorker do ...@@ -107,7 +107,8 @@ describe GitGarbageCollectWorker do
tree: old_commit.tree, tree: old_commit.tree,
parents: [old_commit], parents: [old_commit],
) )
project.repository.update_ref!( GitOperationService.new(nil, project.repository).send(
:update_ref!,
"refs/heads/#{SecureRandom.hex(6)}", "refs/heads/#{SecureRandom.hex(6)}",
new_commit_sha, new_commit_sha,
Gitlab::Git::BLANK_SHA Gitlab::Git::BLANK_SHA
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment