Re: [PATCH 1/2] get_main_ref_store: BUG() when outside a repository

2018-05-18 Thread Stefan Beller
On Fri, May 18, 2018 at 3:25 PM, Jeff King wrote: > If we don't have a repository, then we can't initialize the > ref store. Prior to 64a741619d (refs: store the main ref > store inside the repository struct, 2018-04-11), we'd try to > access get_git_dir(), and outside a repository that would > t

[PATCH 1/2] get_main_ref_store: BUG() when outside a repository

2018-05-18 Thread Jeff King
If we don't have a repository, then we can't initialize the ref store. Prior to 64a741619d (refs: store the main ref store inside the repository struct, 2018-04-11), we'd try to access get_git_dir(), and outside a repository that would trigger a BUG(). After that commit, though, we directly use th