Added Commit Hash and Time to confpy
Some checks failed
gl/check check status: failure (6068d7cea1a79a0cdad0b19e2e6b8fc16c2637bd)

This commit is contained in:
Gode, Sebastian 2024-09-06 07:52:49 +00:00
parent 1985e1f40d
commit 6068d7cea1

View File

@ -134,8 +134,8 @@ latex_documents = [
{% endif -%} {% endif -%}
] ]
# Get the Git commit values # Get the Git commit values for timestamp on each page
repo = Repo(search_parent_directories=True) repo = Repo(search_parent_directories=True)
commit = repo.head.commit 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') current_commit_time = commit.committed_datetime.strftime('%Y-%m-%d %H:%M')