From c5a254d49d244191f2e2a8ce6a2e67914fb62bdb Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Tue, 18 Dec 2012 18:44:33 +0100 Subject: made update repoinfo script more failsafe when dealing with database entries not synced with filesystem --HG-- branch : beta --- rhodecode/lib/update_repoinfo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- cgit v1.2.3