Oddbean new post about | logout
 I probably need to set the Nostr remote; I'll give that a try. 
 I'm struggling to replicate your issue. on a number of repositories `ngit pull` seems to work with or without the nostr remote.
is the behaviour different on previous versions?
Your error suggest that the ngit binary is trying to load the repository event via code in the nostr-remote-nostr binary (which is automatically called via git with that environment variable set). I cant see where that is happening during the `ngit pull` command.

 
 This is a change from previous versions, yes.

I will try a fresh clone to see if that helps.  My configuration may have gotten borked. 
 Even a fresh clone is failing.  Here is the output: 

```
git clone nostr://npub1m3xdppkd0njmrqe2ma8a6ys39zvgp5k8u22mev8xsnqp4nh80srqhqa5sf/Alexandria?relayhint=thecitadel.nostr1.com alexandria
Cloning into 'alexandria'...
nostr: fetching...
 ✔ wss://wheat.happytavern.co/    new events: 1 user profile 
 ✘ wss://nostr.thesamecat.io/     connection timeout
 ✔ wss://nostr.wine/              new events: 1 user profile 
 ✔ wss://greensoul.space/         no new events 
 ✔ wss://nos.lol/                 new events: 2 announcement updates, 7 proposals 
 ✔ wss://nostr.mom/               new events: 1 user profile 
 ✔ wss://relay.damus.io/          new events: 2 announcement updates, 7 proposals 
 ✘ wss://theforest.nostr1.com/    timeout
 ✔ wss://thecitadel.nostr1.com/   new events: 2 announcement updates, 7 proposals 
 ✔ wss://relay.nostr.band/        new events: 2 announcement updates, 6 proposals nostr updates: 2 announcement updates, 7 proposals, 1 user profile
WARNING: failed to fetch from git@github.com:limina1/indextr-client.git error:early EOF; class=Net (12); code=Eof (-20)
and using alternative protocol https://git@github.com/limina1/indextr-client.git: early EOF; class=Net (12); code=Eof (-20)
Error: failed to fetch objects in nostr state event from:
git@github.com:limina1/indextr-client.git: early EOF; class=Net (12); code=Eof (-20) and using alternative protocol https://git@github.com/limina1/indextr-client.git: early EOF; class=Net (12); code=Eof (-20)
``` 
 what system are you on?
try newly issued ngit v1.5.0 (available from gitworkshop.dev/ngit). this upgrades gitlib2, which handles interaction with the git server.

I suspect if you are still getting the issue it relates to unresolved gitlib2 issues: 
https://github.com/libgit2/libgit2/issues/5279
https://github.com/libgit2/libgit2/issues/5752

I can't replicate it on that repository but I can with the following repository on debian:
nostr:naddr1qqrkxcf3xyuxzcgpp4mhxue69uhkummn9ekx7mqzyzsq3hh327t0h2dq6matqn5064cgj2zanl2stkj6s0lg4t2h5dty6qcyqqq80xg2w8nml
I've not come across it on any other repositories, and it only started happening recently on that repository.
 *I wonder if i can tie it down to a particular SSL upgrade with nix* 
 I've download `v1.5.1`, but I'm still struggling.  Here is my git config: 

https://image.nostr.build/2ebac802a72eb48e40cc4197a1dd66dfe2fe5fdf4275ef526ae9a172fa46801d.png

When I run `git push nostr article-editor`, I get the following: 

```
nostr: fetching...
 ✔ wss://nostr.wine/              no new events 
 ✔ wss://nos.lol/                 no new events 
 ✘ wss://theforest.nostr1.com/    timeout
 ✔ wss://thecitadel.nostr1.com/   no new events 
 ✔ wss://relay.nostr.band/        no new events 
 ✔ wss://nostrelites.org/         new events: 1 user profile 
 ✔ wss://relay.damus.io/          no new events                                 nostr updates: 1 user profile
Error: no repo events at specified coordinates
```

If I simply run `ngit push` I get the following familiar error: 

```
Error: git should set GIT_DIR when remote helper is called

Caused by:
    environment variable not found
```

I can't configure ngit via the CLI because I get that above error whenever I attempt to run ngit. 
 Did you manually construct the nostr URL? I think you are using the wrong identifier. The easiest way to ensure you have it right is by looking it up on gitworkshop.dev/repos
nostr://npub1m3xdppkd0njmrqe2ma8a6ys39zvgp5k8u22mev8xsnqp4nh80srqhqa5sf/nostr.thesamecat.io/Alexandria
What platform are you on?  
 I am on Linux Mint.

I just tried that exact URL, and this is the result from trying to run `git push`: 

```
git push --set-upstream nostr article-editor
nostr: fetching...
 ✘ wss://nostr.thesamecat.io/     connection timeout
 ✔ wss://relay.damus.io/          no new events 
 ✔ wss://nos.lol/                 no new events 
 ✘ wss://nostrelites.org/         timeout
 ✔ wss://thecitadel.nostr1.com/   no new events 
 ✘ wss://theforest.nostr1.com/    timeout
 ✔ wss://relay.nostr.band/        no new events 
 ✔ wss://nostr.wine/              no new events                                 nostr: no updates
Error: TODO: enable interactive login in nostr git remote helper
error: failed to push some refs to 'nostr://npub1m3xdppkd0njmrqe2ma8a6ys39zvgp5k8u22mev8xsnqp4nh80srqhqa5sf/nostr.thesamecat.io/Alexandria'
``` 
 I need to enable first time login via the remote helper. For now you need to login first. Ie `ngit login` 
 issue raised in wrong repo. opened here: nostr:nevent1qvzqqqqx25pzpgqgmmc409hm4xsdd74sf68a2uyf9pwel4g9mfdg8l5244t6x4jdqyxhwumn8ghj7mn0wvhxcmmvqqsq423n7tmjyxnpxknv70jq6krthjt2rlrl30f2626phz7qrekzpjs23jvun 
 Is this working on v1.5.2? This may be related to nostr:nevent1qvzqqqqx25pzpgqgmmc409hm4xsdd74sf68a2uyf9pwel4g9mfdg8l5244t6x4jdqy88wumn8ghj7mn0wvhxcmmv9uq3wamnwvaz7tmjv4kxz7fwdehhxarj9e3xzmny9uqsuamnwvaz7tmwdaejumr0dshsz9mhwden5te0wfjkccte9ehx7um5wghxyctwvshsz9thwden5te0wfjkccte9ejxzmt4wvhxjme0qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7qgwwaehxw309ahx7uewd3hkctcpzamhxue69uhhyetvv9ujumn0wd68ytnzv9hxgtcpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhsqgq24gel9aezrfsntfk08eqdtp4me94pl3lch54d9dqm30qpumpqeggenwka