Commit 4da8b37e6776af07c7542552155cc06358728d22
1 parent
d74d7c7c
Exists in
master
and in
4 other branches
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,7 +71,7 @@ module Gitlab | ||
71 | if path.present? | 71 | if path.present? |
72 | repo.log(ref, path, max_count: limit, skip: offset, follow: true) | 72 | repo.log(ref, path, max_count: limit, skip: offset, follow: true) |
73 | elsif limit && offset | 73 | elsif limit && offset |
74 | - repo.commits(ref, limit, offset) | 74 | + repo.commits(ref, limit.to_i, offset.to_i) |
75 | else | 75 | else |
76 | repo.commits(ref) | 76 | repo.commits(ref) |
77 | end.map{ |c| decorate_commit(c) } | 77 | end.map{ |c| decorate_commit(c) } |