Commit 4da8b37e6776af07c7542552155cc06358728d22

Authored by Dmitriy Zaporozhets
1 parent d74d7c7c

Fix bug when limit or offset passed as string

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/gitlab/git/repository.rb
... ... @@ -71,7 +71,7 @@ module Gitlab
71 71 if path.present?
72 72 repo.log(ref, path, max_count: limit, skip: offset, follow: true)
73 73 elsif limit && offset
74   - repo.commits(ref, limit, offset)
  74 + repo.commits(ref, limit.to_i, offset.to_i)
75 75 else
76 76 repo.commits(ref)
77 77 end.map{ |c| decorate_commit(c) }
... ...