From: Glen Choo Date: Tue, 07 Jun 2022 21:37:54 GMT Subject: Re: [PATCH v4 5/5] setup.c: create `discovery.bare` Message-ID: In-Reply-To: <29053d029f8ec61095a2ad557be38b1d485a158f.1654635432.git.gitgitgadget@gmail.com> "Glen Choo via GitGitGadget" writes: > diff --git a/Documentation/config/discovery.txt b/Documentation/config/discovery.txt > new file mode 100644 > index 00000000000..fbe93597e7c > --- /dev/null > +++ b/Documentation/config/discovery.txt > @@ -0,0 +1,19 @@ > +discovery.bare:: > + '(Protected config only)' Specifies whether Git will work with a > + bare repository that it found during repository discovery. This > + has no effect if the repository is specified directly via the > + --git-dir command-line option or the GIT_DIR environment > + variable (see linkgit:git[1]). Ugh, I forgot to update the docs for `discovery.bare`. This should be reworded to be consistent with `safe.directory` and `uploadpack.packObjectsHook`, e.g. discovery.bare:: Specifies whether Git will work with a bare repository that it found during repository discovery. This has no effect if the repository is specified directly via the --git-dir command-line option or the GIT_DIR environment variable (see linkgit:git[1]). This config setting is only respected in protected configuration (see <>). This prevents the untrusted repository from tampering with this value.