rosa-build/app/controllers/git/repositories_controller.rb

10 lines
219 B
Ruby
Raw Normal View History

class Git::RepositoriesController < Git::BaseController
def show
@commit = @git_repository.master
@tree = @commit ? @commit.tree : nil
render :template => "git/repositories/empty" unless @tree
end
end