Coverage for app/venv/lib/python3.14/site-packages/weblate/trans/management/commands/checkgit.py: 0%
8 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 07:15 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 07:15 +0000
1# Copyright © Michal Čihař <michal@weblate.org>
2#
3# SPDX-License-Identifier: GPL-3.0-or-later
5from weblate.trans.management.commands import WeblateComponentCommand
8class Command(WeblateComponentCommand):
9 help = "checks status of git repo"
10 needs_repo = True
12 def handle(self, *args, **options) -> None:
13 """Show status of git repository in given projects."""
14 for component in self.get_components(*args, **options):
15 self.stdout.write(f"{component}:")
16 self.stdout.write(component.repository.status())