Mirror of @tangled.org/core. Running on a Raspberry Pi Zero 2 (Please be gentle).

appview: repo: update tagmap to work on annotated tags

annotated tags have their own custom hashes, but the "target" of the tag
points to the commit they refer to.

+6
+6
appview/state/repo.go
··· 74 74 tagMap := make(map[string][]string) 75 75 for _, tag := range result.Tags { 76 76 hash := tag.Hash 77 + if tag.Tag != nil { 78 + hash = tag.Tag.Target.String() 79 + } 77 80 tagMap[hash] = append(tagMap[hash], tag.Name) 78 81 } 79 82 ··· 192 189 tagMap := make(map[string][]string) 193 190 for _, tag := range result.Tags { 194 191 hash := tag.Hash 192 + if tag.Tag != nil { 193 + hash = tag.Tag.Target.String() 194 + } 195 195 tagMap[hash] = append(tagMap[hash], tag.Name) 196 196 } 197 197