提交 0f3f50d1 编写于 作者: R Robert Speicher

Merge branch 'zj-diverging-commit-count-no-rugged' into 'master'

Use commit finder instead of rev parse

See merge request gitlab-org/gitlab-ce!15683
......@@ -256,7 +256,7 @@ class Repository
end
def diverging_commit_counts(branch)
root_ref_hash = raw_repository.rev_parse_target(root_ref).oid
root_ref_hash = raw_repository.commit(root_ref).id
cache.fetch(:"diverging_commit_counts_#{branch.name}") do
# Rugged seems to throw a `ReferenceError` when given branch_names rather
# than SHA-1 hashes
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册