summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-07-13 17:59:03 +0200
committerJacob Vosmaer <jacob@gitlab.com>2017-07-13 18:05:56 +0200
commit5b18f7336409efa0c3280bda914cf8add601a2ad (patch)
treec6e3dbb5beebb101d946ec79b33a84fe0e9d9e09
parenta87cca5f9c16f969beb5c2f7f819fd7b4f56b7dc (diff)
downloadgitlab-ce-5b18f7336409efa0c3280bda914cf8add601a2ad.tar.gz
Indirectly migrate count_commits_between to Gitaly
-rw-r--r--lib/gitlab/git/repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index b4b2dff0310..639f5625d59 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -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+