summaryrefslogtreecommitdiff
path: root/app/controllers/commits_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/commits_controller.rb')
-rw-r--r--app/controllers/commits_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/commits_controller.rb b/app/controllers/commits_controller.rb
index 7ca5e3bf7ca..376527394ca 100644
--- a/app/controllers/commits_controller.rb
+++ b/app/controllers/commits_controller.rb
@@ -12,12 +12,12 @@ class CommitsController < ApplicationController
def index
@repo = project.repo
- limit, offset = (params[:limit] || 20), (params[:offset] || 0)
+ @limit, @offset = (params[:limit] || 20), (params[:offset] || 0)
@commits = if params[:path]
- @repo.log(@ref, params[:path], :max_count => limit, :skip => offset)
+ @repo.log(@ref, params[:path], :max_count => @limit, :skip => @offset)
else
- @repo.commits(@ref, limit, offset)
+ @repo.commits(@ref, @limit, @offset)
end
respond_to do |format|