Commit cf9a366e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

API: Fix repository commits pagination

parent 883f465a
......@@ -94,7 +94,7 @@ module API
get ":id/repository/commits" do
authorize! :download_code, user_project
page = params[:page] || 0
page = (params[:page] || 0).to_i
per_page = (params[:per_page] || 20).to_i
ref = params[:ref_name] || user_project.try(:default_branch) || 'master'
......
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