aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/utils
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-08-22 03:54:51 +0200
committerGravatar Leon Sandøy <[email protected]>2020-08-22 03:54:51 +0200
commita71c38f07bba0191ba28eef12eea56e8a9265349 (patch)
tree1bea924a12c27854cbe0b4dd11ef5a0bf30472b1 /pydis_site/utils
parentRemove the SHA from the wiki base.html (diff)
Move the SHA into constants.py.
The util was redundant. Thanks @MarkKoz
Diffstat (limited to 'pydis_site/utils')
-rw-r--r--pydis_site/utils/__init__.py3
-rw-r--r--pydis_site/utils/utils.py10
2 files changed, 0 insertions, 13 deletions
diff --git a/pydis_site/utils/__init__.py b/pydis_site/utils/__init__.py
deleted file mode 100644
index bb91b3d8..00000000
--- a/pydis_site/utils/__init__.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from .utils import get_git_sha
-
-__all__ = ['get_git_sha']
diff --git a/pydis_site/utils/utils.py b/pydis_site/utils/utils.py
deleted file mode 100644
index 2033ea19..00000000
--- a/pydis_site/utils/utils.py
+++ /dev/null
@@ -1,10 +0,0 @@
-import git
-
-# Git SHA
-repo = git.Repo(search_parent_directories=True)
-GIT_SHA = repo.head.object.hexsha
-
-
-def get_git_sha() -> str:
- """Get the Git SHA for this repo."""
- return GIT_SHA