aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/constants.py
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-12-20 15:40:35 +0200
committerGravatar ks129 <[email protected]>2020-12-20 15:40:35 +0200
commitc6d93bc73a9d36afcb911421b4eb7e16e4b33aa4 (patch)
tree42986018d8bf44b1338f2c5eecddb8a739b78676 /pydis_site/constants.py
parentSet Git SHA during build workflow (diff)
Get Git SHA from environement instead of GitPython package
Diffstat (limited to 'pydis_site/constants.py')
-rw-r--r--pydis_site/constants.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pydis_site/constants.py b/pydis_site/constants.py
index 0b76694a..c7ab5db0 100644
--- a/pydis_site/constants.py
+++ b/pydis_site/constants.py
@@ -1,5 +1,3 @@
-import git
+import os
-# Git SHA
-repo = git.Repo(search_parent_directories=True)
-GIT_SHA = repo.head.object.hexsha
+GIT_SHA = os.environ.get("GIT_SHA", "development")