diff --git a/plinth/modules/gitweb/views.py b/plinth/modules/gitweb/views.py index a963fcb8d..b6dbb088f 100644 --- a/plinth/modules/gitweb/views.py +++ b/plinth/modules/gitweb/views.py @@ -33,7 +33,9 @@ class GitwebAppView(views.AppView): repos = gitweb.get_repo_list() context['repos'] = repos context['cloning'] = any('clone_progress' in repo for repo in repos) - context['refresh_page_sec'] = 3 if context['cloning'] else None + if context['cloning']: + context['refresh_page_sec'] = 3 + return context