diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-15 19:02:36 +0300 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-15 19:02:36 +0300 |
| commit | 4da8b37e6776af07c7542552155cc06358728d22 (patch) | |
| tree | b30484d076ef497f24fd80d55b92b235eb57037b /lib | |
| parent | d74d7c7cfb49ead619d21e35f07b1feba8295118 (diff) | |
| download | gitlab-ce-4da8b37e6776af07c7542552155cc06358728d22.tar.gz | |
Fix bug when limit or offset passed as string
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/gitlab/git/repository.rb | 2 |
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) } |
