changeset 2788:2d6d6c346f66 beta

Don't scan for readmes if changeset is an EmptyChangeset
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 03 Sep 2012 17:52:51 +0200
parents 423a14349ef3
children d3e5c259fe71
files rhodecode/controllers/summary.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/controllers/summary.py	Mon Sep 03 17:33:21 2012 +0200
+++ b/rhodecode/controllers/summary.py	Mon Sep 03 17:52:51 2012 +0200
@@ -195,6 +195,8 @@
             try:
                 # get's the landing revision! or tip if fails
                 cs = db_repo.get_landing_changeset()
+                if isinstance(cs, EmptyChangeset):
+                    raise EmptyRepositoryError()
                 renderer = MarkupRenderer()
                 for f in README_FILES:
                     try: