Skip to content

Commit

Permalink
nip34: fix .Branches -> .Tags for refs/tags/
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Aug 28, 2024
1 parent 0750057 commit ddf2800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nip34/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}
}
Expand Down

0 comments on commit ddf2800

Please sign in to comment.