Use commit finder instead of rev parse

This has the side effect of making this method rugged call free, which
is the reason I actually changed this.
This commit is contained in:
Zeger-Jan van de Weg 2017-12-01 15:32:57 +01:00
parent 3b6fba728f
commit 020a8482a4
No known key found for this signature in database
GPG Key ID: 65F6A8D64A88ABAC
1 changed files with 1 additions and 1 deletions

View File

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