# HG changeset patch # User Mads Kiilerich # Date 2020-07-25 18:44:59 # Node ID 1dbe842f32c43f9ca9ebc8b7d9331bed8c750382 # Parent 62469662c6601ad608dabc037d4df7211c69a494 repos: when scanning for repos in file system, process and report them alphabetically diff --git a/kallithea/lib/utils.py b/kallithea/lib/utils.py --- a/kallithea/lib/utils.py +++ b/kallithea/lib/utils.py @@ -466,7 +466,7 @@ def repo2db_mapper(initial_repo_dict, re enable_downloads = defs.get('repo_enable_downloads') private = defs.get('repo_private') - for name, repo in initial_repo_dict.items(): + for name, repo in sorted(initial_repo_dict.items()): group = map_groups(name) db_repo = repo_model.get_by_repo_name(name) # found repo that is on filesystem not in Kallithea database