From 4ea143dd36f70f14a08c7e66ad35e95019ef9f68 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Wed, 11 Mar 2026 03:47:59 -0400 Subject: [PATCH] [IMP] script: sort clone list alphabetically The erplibre root repo was appended last and hard to find among 141 entries. Sort the list so repos are easy to locate by name. Generated by Claude Code 2.1.72 model claude-sonnet-4-6 Co-Authored-By: Mathieu Benoit --- script/git/git_local_server.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/script/git/git_local_server.py b/script/git/git_local_server.py index 3b51b19..7fcc584 100755 --- a/script/git/git_local_server.py +++ b/script/git/git_local_server.py @@ -733,7 +733,7 @@ def print_clone_commands(git_path, projects, port): if port != DEFAULT_PORT else "git://localhost" ) - count = 0 + lines = [] for project in projects: repo_name = project["name"] if not repo_name.endswith(".git"): @@ -743,12 +743,14 @@ def print_clone_commands(git_path, projects, port): clone_path = project["path"] if clone_path == ".": clone_path = "erplibre" - print( + lines.append( f" git clone {base_url}/{repo_name}" f" {clone_path}" ) - count += 1 - print(f"\nTotal: {count} repos available") + lines.sort() + for line in lines: + print(line) + print(f"\nTotal: {len(lines)} repos available") print()