From c43cc4c4d80d47861f95eefcd7111350511f7992 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 3 Mar 2024 01:53:01 -0500 Subject: Add commit output to checkout.py --- checkout.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'checkout.py') diff --git a/checkout.py b/checkout.py index f336203..3b6932e 100755 --- a/checkout.py +++ b/checkout.py @@ -5,6 +5,7 @@ # Part of the Jellyfin CI system ############################################################################### +from datetime import datetime from subprocess import run, PIPE import sys @@ -57,5 +58,8 @@ for submodule in submodules.keys(): # Checkout the given head and reset the working tree submodules[submodule].head.reference = target_head submodules[submodule].head.reset(index=True, working_tree=True) + sha = submodules[submodule].head.object.hexsha + date = datetime.fromtimestamp(submodules[submodule].head.object.committed_date) + print(f"Submodule {submodule} now at commit {sha} ({date})") print(f"Successfully checked out submodules to ref {target_release}") -- cgit