Mercurial > kallithea
diff rhodecode/model/scm.py @ 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 | 8748f7974ba8 |
children | 08ac2c3ae810 |
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