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

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

From
DNDmitry Neverov <dmitry.neverov@gmail.com>
Date
Feb 27, 2017, 13:33 UTC
Message-ID
<CAC+L6n0YeX_n_AysCLtBWkA+jPHwg7HmOWq2PLj75byxOZE=qQ@mail.gmail.com>

I'm checking out a repository in a non-interactive environment and would like to disable interactive credential helpers. According to [1] it can be done by specifying an empty helper in a local config:

  [credential]
    helper =

But the submodule update command ignores the helper specified in the config of the parent repository. To reproduce it, fetch a repository with submodules requiring authentication and run:

  git submodule init;
  git submodule sync;
  git submodule update;

the 'git submodule update' runs a default credential helper. The only way to disable it is specify helper in command-line:

  git -c credential.helper= submodule update
Is it by design?
[1] http://marc.info/?l=git&m=147136396024768&w=2
Next: Stefan Beller
Message 1 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.