blob: 2033ea199d07fcdc9a9c48ae908ac0e847421477 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import git
# Git SHA
repo = git.Repo(search_parent_directories=True)
GIT_SHA = repo.head.object.hexsha
def get_git_sha() -> str:
"""Get the Git SHA for this repo."""
return GIT_SHA
|