From bcc4f42cd782a3adc22b4998e8ee74a519a54b85 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 15 Jul 2026 09:07:55 +0900 Subject: [PATCH] git: fix nil dereference in pull when the repository has no published state event. --- git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git.go b/git.go index a2fca45..0c4b333 100644 --- a/git.go +++ b/git.go @@ -853,7 +853,7 @@ aside from those, there is also: } // get the commit from state for the remote branch - if state.Event.ID == nostr.ZeroID { + if state == nil || state.Event.ID == nostr.ZeroID { return fmt.Errorf("no repository state found") }