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

Re: git submodule when submodule is not a clone of a repository

From
LHLars Hjemli <hjemli@gmail.com>
Date
Jan 18, 2008, 17:46 UTC
Message-ID
<8c5c35580801180946q3ba824e2s4c32ac504166c684@mail.gmail.com>
In-Reply-To
<loom.20080118T171433-93@post.gmane.org>
On Jan 18, 2008 6:25 PM, Sergio Callegari <sergio.callegari@gmail.com> wrote:
> Would it make sense to have a git submodule update not try to fetch if there is
> no url defined, but still checkout the right commit for the submodule (rather
> than skipping the submodule at all) ?

Actually, we could (and probably should) teach git-submodule not to fetch if the requested SHA1 is already available in the submodule, and I guess this would solve the problem quite nicely for your usage.

But that will probably not happen before 1.5.4.

-- larsh

Previous: Sergio CallegariNext: Junio C Hamano
Message 2 of 3 in “git submodule when submodule is not a clone of a repository”
  1. Sergio CallegariJan 18, 2008
  2. Lars HjemliJan 18, 2008
  3. Junio C HamanoJan 18, 2008

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.