git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: 'git submodules update' ignores credential.helper config of the parent repository

From
Jeff King <peff@peff.net>
Date
Feb 28, 2017, 14:37 UTC
Message-ID
<20170228143710.smbzo6b7wefjc62r@sigill.intra.peff.net>
In-Reply-To
<CAGZ79ka8saQMKeutE415WxOQ71MnEw1A4uV3b0Pa4gcehx8pdw@mail.gmail.com>
On Mon, Feb 27, 2017 at 11:09:12AM -0800, Stefan Beller wrote:
Show 32 quoted lines
> For worktrees these multiple config files sounded like
> the obvious solution, but I wonder if there was also
> some bike shedding about other solutions?
> 
> I could imagine that we would want to have attributes
> for specific configuration, e.g.:
> 
> --8<--
> [core]
>     repositoryformatversion = 0
>     filemode = true
>     bare = false
>     logallrefupdates = true
> [remote "origin"]
>     url = git://github.com/gitster/git
>     fetch = +refs/heads/*:refs/remotes/origin/*
> [attribute "submodules"]
>     read = true
> # this will be read and respected by submodules as well:
> [url."internal-git-miror"]
>     insteadOf = github.com
> [attribute "submodules"]
>     read = false
> # This (and the beginning of this file) will not be respected
> # by submodules
> [credential]
>     helper =
> -->8--
> 
> This would change the semantics of a config file as the attribute for
> each setting depends on the location (was attribute.FOO.read =
> {true, false} read before).

I'm not enthused by this, just because there is a hidden dependency between attribute.* sections and other ones. They _look_ like regular config keys, but they really aren't.

I have a feeling that something like this would create unwelcome corner cases in the config-writer, which is otherwise does not have to care about which existing section of a file it adds a key to.

-Peff
Previous: Stefan BellerNext: Stefan Beller
Message 3 of 7 in “'git submodules update' ignores credential.helper config of the parent repository”
  1. Dmitry NeverovFeb 27, 2017
  2. Stefan BellerFeb 27, 2017
  3. Jeff KingFeb 28, 2017
  4. Stefan BellerFeb 28, 2017
  5. Jeff KingFeb 28, 2017
  6. Stefan BellerFeb 28, 2017
  7. Jeff KingFeb 28, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.