From: Kaartic Sivaraam Date: Fri, 25 Sep 2026 20:54:15 GMT Subject: Re: [PATCH 4/7] builtin/init: move handling of "core.sharedRepository" into "setup.c" Message-ID: <4e26b51a-f811-4548-97e0-6570680efa13@gmail.com> In-Reply-To: <20260924-pks-create-repository-stateless-v1-4-11499557cf31@pks.im> On 9/24/26 14:49, Patrick Steinhardt wrote: > > diff --git a/builtin/init-db.c b/builtin/init-db.c > index e45268f1ff..34215bbf18 100644 > --- a/builtin/init-db.c > +++ b/builtin/init-db.c > @@ -171,9 +171,6 @@ int cmd_init_db(int argc, > die(_("unknown ref storage format '%s'"), ref_format); > } > > - if (init_shared_repository != -1) > - repo_settings_set_shared_repository(the_repository, init_shared_repository); > - > /* > * GIT_WORK_TREE makes sense only in conjunction with GIT_DIR > * without --bare. Catch the error early. I was wondering if there'll be any function that between here and the create_repository call that may use the_repository. I could not find any from my reading of the code, though. So, this looks good to me. - Sivaraam