aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/constants.py
diff options
context:
space:
mode:
authorGravatar Dennis Pham <[email protected]>2020-12-26 17:08:09 -0500
committerGravatar GitHub <[email protected]>2020-12-26 17:08:09 -0500
commit545f46c786f6949849ad6d474609a967608d80a7 (patch)
treeacda5c1ca808ef868ba8513bc2958bc49dd6fdb1 /pydis_site/constants.py
parentImprove the RepositoryMetadata cleanup code. (diff)
parentMerge pull request #440 from python-discord/lemon/bug/too_many_github_api_req... (diff)
Merge branch 'master' into hotfix/lemon/front-page-project-sanity
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")