This instance will be upgraded to Heptapod 0.20.1 on 2020-03-08 at 14:00 UTC+1 (10 minutes of downtime)

Commit fcc6248d authored by Sushil Khanchi's avatar Sushil Khanchi 🐨

commit_service: align commit_stats to send calls to Hgitaly

This patch make some necessary changes so that on the basis of
repository type it can decide if request should be targeted to
Hgitaly or Gitaly.

Also, the change to revision part is to make sure that we don't
send gitsha to Hgitaly.

--HG--
branch : heptapod-stable
parent 74eba2112fde
......@@ -306,9 +306,9 @@ def find_commit(revision)
def commit_stats(revision)
request = Gitaly::CommitStatsRequest.new(
repository: @gitaly_repo,
revision: encode_binary(@repository.gitsha_from_sha(revision))
revision: encode_binary(revision)
)
GitalyClient.call(@git_storage, :commit_service, :commit_stats, request, timeout: GitalyClient.medium_timeout)
GitalyClient.call(@repository.storage, :commit_service, :commit_stats, request, timeout: GitalyClient.medium_timeout)
end
def find_commits(options)
......
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