Skip to content

Commit

Permalink
convert commit to string (#4599)
Browse files Browse the repository at this point in the history
Signed-off-by: Niels Bantilan <[email protected]>
  • Loading branch information
cosmicBboy authored Dec 14, 2023
1 parent 76e373c commit 1bed29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_ext/import_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1bed29a

Please sign in to comment.