From 4da8b37e6776af07c7542552155cc06358728d22 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Date: Mon, 15 Apr 2013 19:02:36 +0300 Subject: [PATCH] Fix bug when limit or offset passed as string --- lib/gitlab/git/repository.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } -- GitLab