diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-07-13 17:59:03 +0200 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-07-13 18:05:56 +0200 |
commit | 5b18f7336409efa0c3280bda914cf8add601a2ad (patch) | |
tree | c6e3dbb5beebb101d946ec79b33a84fe0e9d9e09 /lib | |
parent | a87cca5f9c16f969beb5c2f7f819fd7b4f56b7dc (diff) | |
download | gitlab-ce-5b18f7336409efa0c3280bda914cf8add601a2ad.tar.gz |
Indirectly migrate count_commits_between to Gitaly
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git/repository.rb | 2 |
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+ |