Indirectly migrate count_commits_between to Gitaly

This commit is contained in:
Jacob Vosmaer 2017-07-13 17:59:03 +02:00
parent a87cca5f9c
commit 5b18f73364
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ module Gitlab
# Counts the amount of commits between `from` and `to`.
def count_commits_between(from, to)
commits_between(from, to).size
Commit.between(self, from, to).size
end
# Returns the SHA of the most recent common ancestor of +from+ and +to+