# HG changeset patch # User Marcin Kuzminski # Date 2011-04-13 00:39:15 # Node ID c93234e9ac3622cfac12492dcc277e4ea8cb71fd # Parent 2ea04758fafa6141b23a1944e5db5244daa2e8f3 fixes issue #163 RhodeCode will check and report a corrupted repo. A rescan with destroy old data should be perform after such operations diff --git a/rhodecode/model/scm.py b/rhodecode/model/scm.py --- a/rhodecode/model/scm.py +++ b/rhodecode/model/scm.py @@ -139,7 +139,7 @@ class ScmModel(BaseModel): 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