From c6d86838dcd22296278b249d995b0b38632a82bf Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sat, 20 Jun 2020 18:43:16 +0800 Subject: Refs view --- git-gmi/gateway.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'git-gmi/gateway.py') diff --git a/git-gmi/gateway.py b/git-gmi/gateway.py index bb7f2e0..671d5cd 100644 --- a/git-gmi/gateway.py +++ b/git-gmi/gateway.py @@ -73,5 +73,13 @@ def handle_cgi_request(path: str, query: str): print(STATUS_TEMPORARY_FAILURE) return + elif view == "refs": + try: + print(repo.view_refs()) + return + except: + print(STATUS_TEMPORARY_FAILURE) + return + handle_cgi_request(environ.get("PATH_INFO"), environ.get("QUERY_STRING")) -- cgit v1.2.3