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.

branch : heptapod-stable
parent 74eba2112fde
......@@ -306,9 +306,9 @@ def find_commit(revision)
def commit_stats(revision)
request =
repository: @gitaly_repo,
revision: encode_binary(@repository.gitsha_from_sha(revision))
revision: encode_binary(revision)
), :commit_service, :commit_stats, request, timeout: GitalyClient.medium_timeout), :commit_service, :commit_stats, request, timeout: GitalyClient.medium_timeout)
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