diff options
author | Frederick Yin <fkfd@macaw.me> | 2020-06-19 19:26:58 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@macaw.me> | 2020-06-19 19:59:14 +0800 |
commit | 1c8d1a0f2e017c8375e080d691dc2f0af10dd9ae (patch) | |
tree | 35a2dcdf6c1cf298dca17e5ceebedd525f2bd79d /git-gmi/gateway.py | |
parent | bd8a1b8d460d6857ea8c9ab8544550492ba82cc8 (diff) |
Main branch now customizable, annotated configs
Diffstat (limited to 'git-gmi/gateway.py')
-rw-r--r-- | git-gmi/gateway.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/git-gmi/gateway.py b/git-gmi/gateway.py index 7de077e..f8c4601 100644 --- a/git-gmi/gateway.py +++ b/git-gmi/gateway.py @@ -7,10 +7,6 @@ from os import environ, listdir # this cgi uses \n as newline. -def generate_navigation(repo_name: str): - pass # TODO - - def handle_cgi_request(path: str, query: str): # intended to work with Jetforce. # url: gemini://git.gemini.site/cgi-bin/cgi.py/repo/src/static/css/[index.css] @@ -46,7 +42,7 @@ def handle_cgi_request(path: str, query: str): elif view == "tree": if len(path_trace) == 2: - print("31 master/") + print(f"31 {MAIN_BRANCH}/") return if len(path_trace) > 2: |