Fix update_ref! call in the test

This commit is contained in:
Lin Jen-Shin 2016-12-06 15:20:50 +08:00
parent a52dc7cec7
commit 444da6f47e
1 changed files with 2 additions and 1 deletions

View File

@ -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