Skip to content
Snippets Groups Projects
Commit 4da8b37e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix bug when limit or offset passed as string

parent d74d7c7c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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) }
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment