Commit 3c5954b8 authored by Nihad Abbasov's avatar Nihad Abbasov

proper fix for #2300

parent e4b67d3b
......@@ -292,7 +292,7 @@ module Gitlab
authorize! :download_code, user_project
page = params[:page] || 0
per_page = params[:per_page].to_i || 20
per_page = (params[:per_page] || 20).to_i
ref = params[:ref_name] || user_project.try(:default_branch) || 'master'
commits = user_project.repository.commits(ref, nil, per_page, page * per_page)
......
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