Replying to Avatar fiatjaf

I'm not sure how I can add that. What is the ngit command I need?

In the meantime I cooked up my own gitpusher and I get these errors trying to push with it:

Found nostr remote: npub=npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6, relay=relay.ngit.dev, identifier=nostrlib

Querying relay: wss://relay.ngit.dev

Found 5 events

Found announcement event: id::9a232a6aab42c073a6423d6324271ce13694b4ea29e43d00c8b4fa059bb0c2a5

Found state event: id::e44e0f98750f943b215ffe09c1034bc5d95ea36a487d36e84f2764915740e118

Current branch: master, commit: 4b2cec9c6d68b01aa40a0457f623afc932faac02

> setting branch master to commit 4b2cec9c6d68b01aa40a0457f623afc932faac02

> publishing updated repository state id::19167b21dbe3cc93451769dbbfedf5684829fd06933d774aa2974d763092a62f

> published to relay wss://relay.ngit.dev

> published to relay wss://nos.lol

> published to relay wss://relay.nostr.band

> published to relay wss://gitnostr.com

(!) error publishing event to relay wss://relay.damus.io: publish: given up waiting for an OK

> pushing to: https://relay.ngit.dev/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git

(!) failed to push to https://relay.ngit.dev/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git: exit status 1

remote: error: cannot push master to 4b2cec9 as nostr state event is at 59bd3c2

To https://relay.ngit.dev/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git

! [remote rejected] master -> master (pre-receive hook declined)

error: failed to push some refs to 'https://relay.ngit.dev/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git'

> pushing to: https://gitnostr.com/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git

(!) failed to push to https://gitnostr.com/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git: exit status 1

remote: error: cannot push master to 4b2cec9 as nostr state event is at 59bd3c2

To https://gitnostr.com/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git

! [remote rejected] master -> master (pre-receive hook declined)

error: failed to push some refs to 'https://gitnostr.com/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git'

Apparently the pre-receive hooks are denying my pushes because they have the wrong state.

But if I query the state directly from wss://relay.ngit.dev and wss://gitnostr.com I get 312cc32da517b290a09532e23a103745cb9f4cd4 for one and 4b2cec9c6d68b01aa40a0457f623afc932faac02 for the other. "4b2c" is the correct one (the commit I'm trying to push), "312c" is a totally unrelated one (not even mentioned in the error message).

So there seems to be some mismatch between the state events and the internal state of the pre-receive hook.

https://gitworkshop.dev/npub1qe3e5wrvnsgpggtkytxteaqfprz0rgxr8c3l34kk3a9t7e2l3acslezefe/nos.lol/why-nostr-needs-noderunners

Is stuck again with the same error

Reply to this note

Please Login to reply.

Discussion

Did some testing again.

Just pushed one commit 015d686c13a09abffb097d9fffd88bc82a30259d to https://gitworkshop.dev/sebastix.dev/why-nostr-needs-noderunners (git remote url is nostr://_@sebastix.dev/nos.lol/why-nostr-needs-noderunners)

Now everything seems to be working fine :)