From c6d93bc73a9d36afcb911421b4eb7e16e4b33aa4 Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Sun, 20 Dec 2020 15:40:35 +0200 Subject: Get Git SHA from environement instead of GitPython package --- pydis_site/constants.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pydis_site') 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") -- cgit v1.2.3