parent
135418dcbf
commit
8d847b89d2
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ module Gitlab
|
|||
authorize! :download_code, user_project
|
||||
|
||||
page = params[:page] || 0
|
||||
per_page = params[:per_page] || 20
|
||||
per_page = params[:per_page].to_i || 20
|
||||
ref = params[:ref_name] || user_project.try(:default_branch) || 'master'
|
||||
|
||||
commits = user_project.repository.commits(ref, nil, per_page, page * per_page)
|
||||
|
|
Loading…
Reference in a new issue