mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 13:22:56 +01:00
nip34: fix .Branches -> .Tags for refs/tags/
This commit is contained in:
parent
0750057b13
commit
ddf28001cf
@ -37,7 +37,7 @@ func ParseRepositoryState(event nostr.Event) RepositoryState {
|
|||||||
if strings.HasPrefix(tag[0], "refs/heads/") {
|
if strings.HasPrefix(tag[0], "refs/heads/") {
|
||||||
st.Branches[tag[0][11:]] = tag[1]
|
st.Branches[tag[0][11:]] = tag[1]
|
||||||
} else if strings.HasPrefix(tag[0], "refs/tags/") {
|
} else if strings.HasPrefix(tag[0], "refs/tags/") {
|
||||||
st.Branches[tag[0][10:]] = tag[1]
|
st.Tags[tag[0][10:]] = tag[1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user