aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/constants.py
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/constants.py
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/constants.py')
-rw-r--r--pydis_site/constants.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pydis_site/constants.py b/pydis_site/constants.py
new file mode 100644
index 00000000..0b76694a
--- /dev/null
+++ b/pydis_site/constants.py
@@ -0,0 +1,5 @@
+import git
+
+# Git SHA
+repo = git.Repo(search_parent_directories=True)
+GIT_SHA = repo.head.object.hexsha