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

Issues when changing submodule URLs

From
GLGerard Lledó <gerard.lledo@gmail.com>
Date
Aug 15, 2008, 12:37 UTC
Message-ID
<d3af73dc0808150537r1f708bct14113943d741e653@mail.gmail.com>

We are using a super repository for our development where all our code resides inside submodules. I'm maintaining this tree, so it's quite common that I change a submodule to point to a different URL according to our needs (ie, another developer is now in charge of one module).

So, basically I delete the old submodule "rm -rf module && git rm module", tune .gitmodules and add it again from a different location "git submodule add ssh://server/newpath module".

The problem comes when another developer pulls the super repository from me and he already has the old module URL initialized/updated. What is a safe/obvious update path for him? "git submodule update" does not work and running init/update doesn't help neither. Is there any way for me to ease these tasks for the rest of developers?

I know one option is to keep the URLs untouched and then merge trees as needed, but this seems to be a bigger workload for everyone.

BR, Gerard

PS: Please CC me, as I'm not registered to the list.
Next: Michael J Gruber
Message 1 of 2 in “Issues when changing submodule URLs”
  1. Gerard LledóAug 15, 2008
  2. Michael J GruberAug 15, 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.