From 11a8f2889e874ecebdbc49a6887918c7b043c503 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 12 Feb 2025 22:37:51 +0800 Subject: {ssh,global}.go, index.html: Add global data containing ssh fp --- handle_repo_info.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'handle_repo_info.go') diff --git a/handle_repo_info.go b/handle_repo_info.go index 4b01371..5dd92e9 100644 --- a/handle_repo_info.go +++ b/handle_repo_info.go @@ -6,5 +6,5 @@ import ( ) 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) + 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