2011-03-10 12:39:24 +00:00
|
|
|
class Git::RepositoriesController < Git::BaseController
|
|
|
|
|
|
|
|
def show
|
2011-03-11 17:19:47 +00:00
|
|
|
@commit = @git_repository.master
|
2011-03-15 11:24:45 +00:00
|
|
|
@tree = @commit ? @commit.tree : nil
|
|
|
|
|
|
|
|
render :template => "git/repositories/empty" unless @tree
|
2011-03-10 12:39:24 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|