Skip to content
Snippets Groups Projects
Commit cf9a366e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

API: Fix repository commits pagination

parent 883f465a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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'
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment