aboutsummaryrefslogtreecommitdiff
path: root/handle_repo_info.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-13 00:31:48 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-13 00:32:01 +0800
commitd87f80d3e14990e5d9fc83990ff04e29affa3a94 (patch)
tree5df543f16b96388c1dc7c6456c24d8b0d66b9d5d /handle_repo_info.go
parentREADME.md: Add a bit of detail (diff)
downloadforge-d87f80d3e14990e5d9fc83990ff04e29affa3a94.tar.gz
forge-d87f80d3e14990e5d9fc83990ff04e29affa3a94.tar.zst
forge-d87f80d3e14990e5d9fc83990ff04e29affa3a94.zip
*.go: Mass rename files for clarity
Diffstat (limited to 'handle_repo_info.go')
-rw-r--r--handle_repo_info.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/handle_repo_info.go b/handle_repo_info.go
deleted file mode 100644
index 5dd92e9..0000000
--- a/handle_repo_info.go
+++ /dev/null
@@ -1,10 +0,0 @@
-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)
-}