diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-11 23:18:21 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-11 23:18:21 +0800 |
commit | cc07b71f68e97516b5fe9512a31d5afb8b8972cd (patch) | |
tree | d9f54efc511b87f2d78713637631c133dc9f2a51 /handle_repo_log.go | |
parent | *: Use URL params to specify commits/branches/tags (diff) | |
download | forge-cc07b71f68e97516b5fe9512a31d5afb8b8972cd.tar.gz forge-cc07b71f68e97516b5fe9512a31d5afb8b8972cd.tar.zst forge-cc07b71f68e97516b5fe9512a31d5afb8b8972cd.zip |
*.go: Remove extra TODOs
Diffstat (limited to 'handle_repo_log.go')
-rw-r--r-- | handle_repo_log.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/handle_repo_log.go b/handle_repo_log.go index 6a2d8bb..62e0e4f 100644 --- a/handle_repo_log.go +++ b/handle_repo_log.go @@ -6,10 +6,9 @@ import ( "github.com/go-git/go-git/v5/plumbing" ) -// TODO: I probably shouldn't include *all* commitsh here... +// TODO: I probably shouldn't include *all* commits here... func handle_repo_log(w http.ResponseWriter, r *http.Request) { data := make(map[string]any) - // TODO: Sanitize path values group_name, repo_name, ref_name := r.PathValue("group_name"), r.PathValue("repo_name"), r.PathValue("ref") data["group_name"], data["repo_name"], data["ref"] = group_name, repo_name, ref_name repo, err := open_git_repo(group_name, repo_name) |