summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/projects/_home_panel.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml
index 273a8493f44..52a6d201099 100644
--- a/app/views/projects/_home_panel.html.haml
+++ b/app/views/projects/_home_panel.html.haml
@@ -21,7 +21,7 @@
- if can?(current_user, :admin_project, @project)
–
%strong= link_to 'Edit', edit_project_path
- - elsif @repository.readme
+ - elsif !@project.empty_repo? && @repository.readme
- readme = @repository.readme
= link_to project_blob_path(@project, tree_join(@repository.root_ref, readme.name)) do
= readme.name