From e39b2f1a2c433d38f772db6a355214e01a736cf0 Mon Sep 17 00:00:00 2001 From: "Gode, Sebastian" Date: Fri, 6 Sep 2024 08:04:01 +0000 Subject: [PATCH] longer commit string Reviewed-by: tischrei Co-authored-by: Gode, Sebastian Co-committed-by: Gode, Sebastian --- otc_metadata/templates/conf.py.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/otc_metadata/templates/conf.py.j2 b/otc_metadata/templates/conf.py.j2 index 163c6b5..bbde7f5 100644 --- a/otc_metadata/templates/conf.py.j2 +++ b/otc_metadata/templates/conf.py.j2 @@ -134,8 +134,8 @@ latex_documents = [ {% endif -%} ] -# Get the Git commit values +# Get the Git commit values for last updated timestamp on each page repo = Repo(search_parent_directories=True) commit = repo.head.commit -current_commit_hash = commit.hexsha[:7] +current_commit_hash = commit.hexsha current_commit_time = commit.committed_datetime.strftime('%Y-%m-%d %H:%M')