Monorepo for Tangled tangled.org
2

Configure Feed

Select the types of activity you want to include in your feed.

knotmirror/xrpc: git.listLanguages: default to HEAD when ref is empty

Signed-off-by: Seongmin Lee <git@boltless.me>

author
Seongmin Lee
committer
Lewis
date (May 29, 2026, 2:50 PM +0300) commit 30707ac8 parent ba3a1a59 change-id xuryvvtk
+5 -1
+5 -1
knotmirror/xrpc/git_list_languages.go
··· 36 36 return 37 37 } 38 38 39 + if ref == "" { 40 + ref = "HEAD" 41 + } 42 + 39 43 commit, err := gitea.GetCommit(ctx, repoPath, ref) 40 44 if err != nil { 41 45 l.Error("failed to get commit", "err", err) 42 - writeJson(w, http.StatusNotFound, atclient.ErrorBody{Name: "RefNotFound", Message: fmt.Sprintf("unknown git ref: %s", repo)}) 46 + writeJson(w, http.StatusNotFound, atclient.ErrorBody{Name: "RefNotFound", Message: fmt.Sprintf("unknown git ref: %s", ref)}) 43 47 return 44 48 } 45 49