summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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 96fd610077c..ddead51d443 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -71,7 +71,7 @@ module Gitlab
if path.present?
repo.log(ref, path, max_count: limit, skip: offset, follow: true)
elsif limit && offset
- repo.commits(ref, limit, offset)
+ repo.commits(ref, limit.to_i, offset.to_i)
else
repo.commits(ref)
end.map{ |c| decorate_commit(c) }