aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/constants.py
diff options
context:
space:
mode:
authorGravatar Bryan Kok <[email protected]>2021-03-04 11:58:05 +0800
committerGravatar Bryan Kok <[email protected]>2021-03-04 11:58:05 +0800
commitb5a7dc48cd1ffbb0471858660d58b8b2e6a115fa (patch)
tree3d9b98700df69ace83c90a31c8625710639427db /pydis_site/constants.py
parentHide arrow to the right of More below the 1024px breakpoint (diff)
parentUpdate Dockerfile (diff)
Resolve conflicts
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")