complete hooks for post receive

This commit is contained in:
Dmitriy Zaporozhets 2012-01-08 13:20:20 +02:00
parent 57ac5fe99f
commit 473445c76f
7 changed files with 64 additions and 5 deletions

View file

@ -68,7 +68,7 @@ class ProjectsController < ApplicationController
def show
return render "projects/empty" unless @project.repo_exists? && @project.has_commits?
limit = (params[:limit] || 10).to_i
limit = (params[:limit] || 20).to_i
@activities = @project.cached_updates(limit)
end

View file

@ -9,7 +9,7 @@ class RepositoriesController < ApplicationController
layout "project"
def show
@activities = @project.fresh_commits(10)
@activities = @project.fresh_commits(20)
end
def branches