Monorepo for Tangled tangled.org
2

Configure Feed

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

knotserver/git: fix double allocation in lastCommit calculation

Signed-off-by: oppiliappan <me@oppi.li>

author
oppiliappan
committer
Tangled
date (May 14, 2026, 1:35 PM +0300) commit 48c11d80 parent 347194a2 change-id uvwvpory
+2 -2
+2 -2
knotserver/git/tree.go
··· 49 49 nts := []types.NiceTree{} 50 50 51 51 entries := make([]string, len(subtree.Entries)) 52 - for _, e := range subtree.Entries { 53 - entries = append(entries, e.Name) 52 + for i, e := range subtree.Entries { 53 + entries[i] = e.Name 54 54 } 55 55 56 56 lastCommitDir := lastCommitDir{