Commit 4da8b37e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix bug when limit or offset passed as string

parent d74d7c7c
......@@ -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) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment