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

git submodule should honor "-c credential.helper" command line argument

From
Marc Strapetz <marc.strapetz@syntevo.com>
Date
Feb 2, 2016, 17:13 UTC
Message-ID
<56B0E3AA.30804@syntevo.com>
git -c credential.helper=helper submodule update --init submodule

does not invoke "helper", but falls back to the default strategies. When configuring in ~/.gitconfig:

[credential]
   helper=helper
git submodule update --init submodule

works fine. This behavior is somewhat unexpected -- is this a bug or by intention? In case intention, what's the recommended way to "inject" credentials helpers to work on submodules without modifying Git's config files?

Tested with Git 2.5.0 (Windows).
-Marc
Next: Jeff King
Message 1 of 15 in “git submodule should honor "-c credential.helper" command line argument”
  1. Marc StrapetzFeb 2, 2016
  2. Jeff KingFeb 3, 2016
  3. Jacob KellerFeb 3, 2016
  4. Marc StrapetzFeb 3, 2016
  5. Jacob KellerFeb 3, 2016
  6. Jacob KellerFeb 7, 2016
  7. Marc StrapetzFeb 7, 2016
  8. Jacob KellerFeb 8, 2016
  9. Jacob KellerFeb 19, 2016
  10. Jeff KingFeb 19, 2016
  11. Jacob KellerFeb 19, 2016
  12. Jeff KingFeb 19, 2016
  13. Jacob KellerFeb 19, 2016
  14. Junio C HamanoFeb 19, 2016
  15. Jacob KellerFeb 19, 2016

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.