On Sat, Sep 21, 2024 at 11:22:04PM +0200, René Scharfe wrote: [snip] > I wonder if the BUG at refs.c:1933 should just be turned into a die(). > Or should ref_store_init() return NULL (or some other value indicating > an error) and all callers need to be changed to deal with that? > > Simply checking whether --git-dir points to an actual repo earlier is > tempting, but would leave the case of it disappearing after the check > unhandled.