aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_info.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-14 09:09:03 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-14 09:09:03 +0800
commit3d85fab35eaea608775d0e7b2724a1767a35a59e (patch)
treef677cd37ead71df2ecb59eda6b361c421192ad2b /http_handle_repo_info.go
parenthttp_*.go: Abstract out render_template for deduplication (diff)
downloadforge-3d85fab35eaea608775d0e7b2724a1767a35a59e.tar.gz
forge-3d85fab35eaea608775d0e7b2724a1767a35a59e.tar.zst
forge-3d85fab35eaea608775d0e7b2724a1767a35a59e.zip
repo_info: Clarify the SSH access message
Diffstat (limited to 'http_handle_repo_info.go')
-rw-r--r--http_handle_repo_info.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http_handle_repo_info.go b/http_handle_repo_info.go
index a994c34..3935f4b 100644
--- a/http_handle_repo_info.go
+++ b/http_handle_repo_info.go
@@ -5,5 +5,5 @@ import (
)
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)
}