changeset 1255:c93234e9ac36 beta

fixes issue #163 RhodeCode will check and report a corrupted repo. A rescan with destroy old data should be perform after such operations
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 13 Apr 2011 00:39:15 +0200
parents 2ea04758fafa
children 0a2a10a1912f 28060f0ac6c6
files rhodecode/model/scm.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/model/scm.py	Wed Apr 13 00:10:09 2011 +0200
+++ b/rhodecode/model/scm.py	Wed Apr 13 00:39:15 2011 +0200
@@ -139,7 +139,7 @@
             if r_dbr is not None:
                 repo, dbrepo = r_dbr
 
-                if repo is None and dbrepo is None:
+                if repo is None or dbrepo is None:
                     log.error('Repository %s looks somehow corrupted', r_name)
                     continue
                 last_change = repo.last_change