git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Issues when changing submodule URLs
@ 2008-08-15 12:37 Gerard Lledó
  2008-08-15 15:01 ` Michael J Gruber
  0 siblings, 1 reply; 2+ messages in thread
From: Gerard Lledó @ 2008-08-15 12:37 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-15 15:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-15 12:37 Issues when changing submodule URLs Gerard Lledó
2008-08-15 15:01 ` Michael J Gruber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).