diff options
author | 2020-12-21 14:55:33 +0000 | |
---|---|---|
committer | 2020-12-21 14:55:33 +0000 | |
commit | 36dc58008181944ff78b85f9ac64b7b3e089b10c (patch) | |
tree | 58f4f1ac0d26fb180a6caad4533e2d0b1e31a85d /pydis_site/constants.py | |
parent | Merge pull request #438 from python-discord/metricity-temp-fix (diff) | |
parent | Change pydis-site to site in Sentry SDK initialization (diff) |
Merge pull request #439 from python-discord/ks123/sentry
Diffstat (limited to 'pydis_site/constants.py')
-rw-r--r-- | pydis_site/constants.py | 6 |
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") |