From 3d85fab35eaea608775d0e7b2724a1767a35a59e Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 14 Feb 2025 09:09:03 +0800 Subject: [PATCH] repo_info: Clarify the SSH access message --- http_handle_repo_info.go | 2 +- diff --git a/http_handle_repo_info.go b/http_handle_repo_info.go index a994c34dcbf8bb0c82b8aa4935b952a39822e8cb..3935f4b95e84319eab604f2c40d26fb0d9ffb861 100644 --- a/http_handle_repo_info.go +++ b/http_handle_repo_info.go @@ -5,5 +5,5 @@ "net/http" ) func handle_repo_info(w http.ResponseWriter, r *http.Request, params map[string]any) { - 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;93m"+generate_ssh_remote_url(params["group_name"].(string), params["repo_name"].(string))+"\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 (setupless anonymous access enabled):\x1b[0m\n\x1b[1;93m"+generate_ssh_remote_url(params["group_name"].(string), params["repo_name"].(string))+"\x1b[0m", http.StatusNotImplemented) } -- 2.48.1