git host fixed

This commit is contained in:
Dmitriy Zaporozhets 2011-12-05 09:23:53 +02:00
parent 8f4a0bd174
commit 8134fe0efe
7 changed files with 14 additions and 8 deletions

View file

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