diff options
| author | 2020-08-22 03:18:25 +0200 | |
|---|---|---|
| committer | 2020-08-22 03:18:25 +0200 | |
| commit | 503bfba6855d3019a2739bb1adce69c457a8b26e (patch) | |
| tree | 25316b0e1ef7c96a0e9c6ca707c6c2294f9c12c8 /pydis_site/utils/resources.py | |
| parent | Move git SHA fetcher into utils. (diff) | |
Move git SHA fetcher into its own file.
Fix tests.
Diffstat (limited to '')
| -rw-r--r-- | pydis_site/utils/resources.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/pydis_site/utils/resources.py b/pydis_site/utils/resources.py index d36c4b77..637fd785 100644 --- a/pydis_site/utils/resources.py +++ b/pydis_site/utils/resources.py @@ -4,13 +4,8 @@ import glob import typing from dataclasses import dataclass -import git import yaml -# Git SHA -repo = git.Repo(search_parent_directories=True) -GIT_SHA = repo.head.object.hexsha - @dataclass class URL: @@ -94,8 +89,3 @@ def load_categories(order: typing.List[str]) -> typing.List[Category]: categories.append(Category.construct_from_directory(direc)) return categories - - -def get_git_sha() -> str: - """Get the Git SHA for this repo.""" - return GIT_SHA |