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

core.sshCommand and url.*.insteadOf for submodules

From
SSStefan Schindler <stsch@boxbox.org>
Date
Jan 5, 2017, 10:09 UTC
Message-ID
<17f2724d-7001-203e-f0b5-cf586703a41a@boxbox.org>
Hello mailing list,

it seems like that the `core.sshCommand` and `url.*.insteadOf` configuration settings do not apply to `git submodule update --init` (and probably related) calls.

Is this intentional?

My scenario is as follows: I use 2 SSH keys for GitHub, for private and work-related repositories. My default key is my private key. So when I clone a work repository and try getting the submodules, `git submodule update --init` fails. This is also the case when setting `core.sshCommand` and `url.*.insteadOf` (useful for substituting "github.com" by some ~/.ssh/config'ured host).

Greetings, Stefan Schindler

Next: Stefan Beller
Message 1 of 4 in “core.sshCommand and url.*.insteadOf for submodules”
  1. Stefan SchindlerJan 5, 2017
  2. Stefan BellerJan 5, 2017
  3. Jeff KingJan 5, 2017
  4. Stefan BellerJan 5, 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.