aboutsummaryrefslogtreecommitdiff
path: root/checkout.py
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-03-03 01:53:01 -0500
committerJoshua M. Boniface <joshua@boniface.me>2024-03-03 01:53:01 -0500
commitc43cc4c4d80d47861f95eefcd7111350511f7992 (patch)
treee41558c96830811732ccde58c406b62eab17d954 /checkout.py
parentAdd tar.xz archives (diff)
downloadjellyfin-packaging-c43cc4c4d80d47861f95eefcd7111350511f7992.tar.gz
jellyfin-packaging-c43cc4c4d80d47861f95eefcd7111350511f7992.tar.bz2
jellyfin-packaging-c43cc4c4d80d47861f95eefcd7111350511f7992.zip
Add commit output to checkout.py
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