diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2012-12-18 18:44:33 +0100 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2012-12-18 18:44:33 +0100 |
commit | c5a254d49d244191f2e2a8ce6a2e67914fb62bdb (patch) | |
tree | fb525ca594e397ca69ed0f49770b1b65d9adea86 | |
parent | 9706dfdc0f31f7934048122ab59e624ea1326afd (diff) |
made update repoinfo script more failsafe when dealing with database entries not synced with filesystem
--HG--
branch : beta
-rw-r--r-- | rhodecode/lib/update_repoinfo.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rhodecode/lib/update_repoinfo.py b/rhodecode/lib/update_repoinfo.py index 05d6f37f..89e5cef0 100644 --- a/rhodecode/lib/update_repoinfo.py +++ b/rhodecode/lib/update_repoinfo.py @@ -73,7 +73,8 @@ class UpdateCommand(BasePasterCommand): else: repo_list = Repository.getAll() for repo in repo_list: - last_change = repo.scm_instance.last_change + last_change = (repo.scm_instance.last_change if repo.scm_instance + else datetime.datetime.utcfromtimestamp(0)) repo.update_last_change(last_change) def update_parser(self): |