Verified Commit 6fc9333d authored by anarcat's avatar anarcat
Browse files

show the total number of projects in map

parent c1962d90
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -450,8 +450,11 @@ def count_repos_categories(
        Path(gitolite_repo_local_dir).expanduser() / "conf" / "gitolite.conf"
    )
    category_map = map_repos_categories_str(gitolite_conf_path.open().read())
    total = 0
    for category, projects in category_map.items():
        print("%d %s" % (len(projects), category))
        total += len(projects)
    print("%d total" % total)


@task