From ddf28001cfdf7df6073d1f8621889a457471d681 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 28 Aug 2024 16:08:04 -0300 Subject: [PATCH] nip34: fix .Branches -> .Tags for refs/tags/ --- nip34/state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nip34/state.go b/nip34/state.go index 6865ead..0ef4c0f 100644 --- a/nip34/state.go +++ b/nip34/state.go @@ -37,7 +37,7 @@ func ParseRepositoryState(event nostr.Event) RepositoryState { if strings.HasPrefix(tag[0], "refs/heads/") { st.Branches[tag[0][11:]] = tag[1] } else if strings.HasPrefix(tag[0], "refs/tags/") { - st.Branches[tag[0][10:]] = tag[1] + st.Tags[tag[0][10:]] = tag[1] } } }