aboutsummaryrefslogtreecommitdiff
path: root/handle_repo_commit.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-12 22:37:51 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-12 22:37:51 +0800
commit11a8f2889e874ecebdbc49a6887918c7b043c503 (patch)
tree0ead7076fe6df7a1edf6d3a54963ae328a2f0084 /handle_repo_commit.go
parentREADME.md: Update about SSH implementation (diff)
downloadforge-11a8f2889e874ecebdbc49a6887918c7b043c503.tar.gz
forge-11a8f2889e874ecebdbc49a6887918c7b043c503.tar.zst
forge-11a8f2889e874ecebdbc49a6887918c7b043c503.zip
{ssh,global}.go, index.html: Add global data containing ssh fp
Diffstat (limited to '')
-rw-r--r--handle_repo_commit.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/handle_repo_commit.go b/handle_repo_commit.go
index b567baa..d79b088 100644
--- a/handle_repo_commit.go
+++ b/handle_repo_commit.go
@@ -18,6 +18,7 @@ type usable_file_patch struct {
func handle_repo_commit(w http.ResponseWriter, r *http.Request, params map[string]string) {
data := make(map[string]any)
+ data["global"] = global_data
group_name, repo_name, commit_id_specified_string := params["group_name"], params["repo_name"], params["commit_id"]
data["group_name"], data["repo_name"] = group_name, repo_name
repo, err := open_git_repo(r.Context(), group_name, repo_name)