From 1bed29a93905f3745e2618f2f32cf77adea8c835 Mon Sep 17 00:00:00 2001 From: Niels Bantilan Date: Thu, 14 Dec 2023 12:02:36 -0500 Subject: [PATCH] convert commit to string (#4599) Signed-off-by: Niels Bantilan --- docs/_ext/import_projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_ext/import_projects.py b/docs/_ext/import_projects.py index 214f6b5387..b4fa6310d7 100644 --- a/docs/_ext/import_projects.py +++ b/docs/_ext/import_projects.py @@ -151,7 +151,7 @@ def import_projects(app: Sphinx, config: Config): # If tags don't exist just use the current commit. This occurs # when the git repo is a shallow clone. tag_str = "dev" - commit = repo.head.commit + commit = str(repo.head.commit)[:7] else: tag = tags[-1] tag_str = str(tag)