Monorepo for Tangled
0

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>

authored by

oppiliappan and committed by
Tangled
(May 14, 2026, 1:35 PM +0300) 48c11d80 347194a2

+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{