From d87f80d3e14990e5d9fc83990ff04e29affa3a94 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 13 Feb 2025 00:31:48 +0800 Subject: *.go: Mass rename files for clarity --- http_handle_repo_info.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 http_handle_repo_info.go (limited to 'http_handle_repo_info.go') diff --git a/http_handle_repo_info.go b/http_handle_repo_info.go new file mode 100644 index 0000000..5dd92e9 --- /dev/null +++ b/http_handle_repo_info.go @@ -0,0 +1,10 @@ +package main + +import ( + "net/http" + "net/url" +) + +func handle_repo_info(w http.ResponseWriter, r *http.Request, params map[string]string) { + http.Error(w, "\x1b[1;93mHi! We do not support Git operations over HTTP yet.\x1b[0m\n\x1b[1;93mMeanwhile, please use ssh by simply replacing the scheme with \"ssh://\":\x1b[0m\n\x1b[1;93mssh://"+r.Host+"/"+url.PathEscape(params["group_name"])+"/:/repos/"+url.PathEscape(params["repo_name"])+"\x1b[0m", http.StatusNotImplemented) +} -- cgit v1.2.3