diff options
Diffstat (limited to 'lib/api/commits.rb')
-rw-r--r-- | lib/api/commits.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/commits.rb b/lib/api/commits.rb index 541a37b0abe..5d8985455ad 100644 --- a/lib/api/commits.rb +++ b/lib/api/commits.rb @@ -47,7 +47,7 @@ module API path = params[:path] before = params[:until] after = params[:since] - ref = params[:ref_name].presence || user_project.try(:default_branch) || 'master' unless params[:all] + ref = params[:ref_name].presence || user_project.default_branch unless params[:all] offset = (params[:page] - 1) * params[:per_page] all = params[:all] with_stats = params[:with_stats] |