Indirectly migrate count_commits_between to Gitaly
This commit is contained in:
parent
a87cca5f9c
commit
5b18f73364
|
@ -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+
|
||||
|
|
Loading…
Reference in New Issue