git: fix --owner flag in "init".

fixes https://github.com/fiatjaf/nak/issues/113
This commit is contained in:
fiatjaf
2026-03-16 16:08:58 -03:00
parent c1e72e0af1
commit 952d638ac3

2
git.go
View File

@@ -157,7 +157,7 @@ aside from those, there is also:
var owner nostr.PubKey
var ownerStr string
if c.String("owner") != "" {
owner, err = parsePubKey(ownerStr)
owner, err = parsePubKey(c.String("owner"))
if err != nil {
return fmt.Errorf("invalid owner pubkey: %w", err)
}