aboutsummaryrefslogtreecommitdiff
path: root/handle_repo_raw.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-12 19:16:41 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-12 19:16:41 +0800
commitf828acac387aacadd2884837402b0e32b2368470 (patch)
tree475c374f5e9b1205136cf03171867ead7fad4291 /handle_repo_raw.go
parenthttp_router.go: Move from router.go and fix conditional placement bug (diff)
downloadforge-f828acac387aacadd2884837402b0e32b2368470.tar.gz
forge-f828acac387aacadd2884837402b0e32b2368470.tar.zst
forge-f828acac387aacadd2884837402b0e32b2368470.zip
*.go: Use the database for repo info, and fix ssh cloning repo
Diffstat (limited to '')
-rw-r--r--handle_repo_raw.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/handle_repo_raw.go b/handle_repo_raw.go
index d335f6a..4cf7d1a 100644
--- a/handle_repo_raw.go
+++ b/handle_repo_raw.go
@@ -26,7 +26,7 @@ func handle_repo_raw(w http.ResponseWriter, r *http.Request, params map[string]s
data["ref_type"], data["ref"], data["group_name"], data["repo_name"], data["path_spec"] = ref_type, ref_name, group_name, repo_name, path_spec
- repo, err := open_git_repo(group_name, repo_name)
+ repo, err := open_git_repo(r.Context(), group_name, repo_name)
if err != nil {
_, _ = w.Write([]byte("Error opening repo: " + err.Error()))
return