Thread (30 messages) flat view 30 messages, 4 authors, 2016-06-15

Re: [RFC] Third round of support for cloning submodules

From: Sven Verdoolaege <hidden>
Date: 2016-06-15 22:43:11

On Mon, May 21, 2007 at 12:52:53AM +0200, Martin Waitz wrote:
That leads to submodules which store their objects within the
supermodule .git directory,
My code clones submodules in .git/submodules/<submodule>, so
that could be a good default.
which would automatically obsolete the
need to specify explicit submodule URLs.
Absolutely not.  The subproject will likely have a life of its own.
If you export it on the same machine, then why would you have two
different URLs for the same project?
Also, the subproject will typically not even be on the same site,
so you _have_ to be able to specify a submodule URL.
(I noticed that I forgot the "git://" protocol; I'll add that in
the next round.)
So back to your code: I don't like absolute URLs in the cloneable part
of the repository.  We should try to stay with relative ones which
can stay the same everywhere.
The problem with relative paths is that you don't know if the
URL the user gave you points to the working directory or the
git directory of the project, but I guess I can let dump-config
tell you where it found the config file.

skimo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help