From: "Gerard Lledó" <gerard.lledo@gmail.com>
To: git@vger.kernel.org
Subject: Issues when changing submodule URLs
Date: Fri, 15 Aug 2008 15:37:24 +0300 [thread overview]
Message-ID: <d3af73dc0808150537r1f708bct14113943d741e653@mail.gmail.com> (raw)
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 reply other threads:[~2008-08-15 12:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-15 12:37 Gerard Lledó [this message]
2008-08-15 15:01 ` Issues when changing submodule URLs Michael J Gruber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d3af73dc0808150537r1f708bct14113943d741e653@mail.gmail.com \
--to=gerard.lledo@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).