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

Re: How should submodules use different sshCommand during initial update?

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 13, 2026, 16:02 UTC
Message-ID
<xmqq1pgilufr.fsf@gitster.g>
In-Reply-To
<CAAC4ekqE0rGTeZA3fPKYePr3=J8pHe-KORgn5W026J8AAhRRHw@mail.gmail.com>
Shibo Xia <sbxia25@gmail.com> writes:
> My use case is that different submodules may need different SSH identities or
> different SSH command settings.

Would it help to do "submodule init" separately from "submodule update"? Then you have a chance to tweak the submodule.*.url configuration items in the superproject repository before the clone actually happens, I would imagine?

Previous: Shibo XiaNext: Shibo Xia
Message 2 of 5 in “How should submodules use different sshCommand during initial update?”
  1. Shibo XiaApr 13, 2026
  2. Junio C HamanoApr 13, 2026
  3. Shibo XiaApr 14, 2026
  4. Jeff KingApr 14, 2026
  5. Shibo XiaApr 14, 2026

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.