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

[RFE] git submodule foreach where initialized

From
rsbecker@nexbridge.com <rsbecker@nexbridge.com>
Date
Dec 11, 2021, 18:32 UTC
Message-ID
<024501d7eebd$6cc88830$46599890$@nexbridge.com>
Hi All,

I have hit an edge condition that I think may need a command option. When cloning, we sometimes ignore a specific submodule (because we don't need it on the platform we are building in this case).

The git submodule foreach command reports an error: fatal: No url found for submodule path 'sub1' in .gitmodules

In our situation, this can be bypassed because we don't care about sub1. My thought is that some option like --init-only or --ignore-uninit might be useful to bypass this condition and allow the foreach to run on all valid submodules. Does that make sense?

Regards, Randall

Message 1 of 1 in “[RFE] git submodule foreach where initialized”
  1. rsbecker@nexbridge.comDec 11, 2021

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.