aboutsummaryrefslogtreecommitdiff
path: root/checkout.py
diff options
context:
space:
mode:
Diffstat (limited to 'checkout.py')
-rwxr-xr-xcheckout.py4
1 files changed, 4 insertions, 0 deletions
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}")
bgstack15