From f651f3b5c6e7eee9031ed8c476991fe71300eaa6 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 7 Apr 2025 10:18:20 -0400 Subject: [PATCH] Add more detailed information in checkout Help quickly determine any possible issues here --- checkout.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/checkout.py b/checkout.py index 4f444eb..666e9bd 100755 --- a/checkout.py +++ b/checkout.py @@ -59,7 +59,9 @@ for submodule in submodules.keys(): submodules[submodule].head.reference = target_head submodules[submodule].head.reset(index=True, working_tree=True) sha = submodules[submodule].head.object.hexsha + author = submodules[submodule].head.object.author.name + summary = submodules[submodule].head.object.summary date = datetime.fromtimestamp(submodules[submodule].head.object.committed_date) - print(f"Submodule {submodule} now at commit {sha} ({date})") + print(f"Submodule {submodule} now at {target_head} (\"{summary}\" commit {sha} by {author} @ {date})") print(f"Successfully checked out submodules to ref {target_release}")