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

Re: how to update a submodule?

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jan 2, 2011, 17:57 UTC
Message-ID
<20110102175725.GC13358@burratino>
In-Reply-To
<4D20B629.8000107@web.de>
Jens Lehmann wrote:
> Submodules don't work very well when you change URLs (that can result
> in forcing your coworkers to do a "git submodule sync" in their repo
> every time they switch to a commit with a changed URL).

For the future, it is probably most convenient to use URLs starting with "../" or "./", which would rarely need to change. That can even work with passing around a tarball of bundles and a script to reconstitute them, I think.

Thanks for some food for thought. Jonathan

Previous: Jens Lehmann
Message 7 of 7 in “how to update a submodule?”
  1. Oliver KullmannDec 31, 2010
  2. Seth RobertsonDec 31, 2010
  3. Oliver KullmannJan 1, 2011
  4. Jens LehmannJan 2, 2011
  5. Oliver KullmannJan 2, 2011
  6. Jens LehmannJan 2, 2011
  7. Jonathan NiederJan 2, 2011

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.