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

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

From: Martin Waitz <hidden>
Date: 2016-06-15 22:43:11

hoi :)

On Mon, May 21, 2007 at 10:54:19AM +0200, Sven Verdoolaege wrote:
On Mon, May 21, 2007 at 12:52:53AM +0200, Martin Waitz wrote:
quoted
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.
good.
quoted
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.)
Typically, you have to keep it on the same site because you have
some local adaptions which are only ment to be included within the
superproject.  Think about distributions which seldomly use upstream
software completely unmodified.
Being able to configure it for other URLs is nice but by default it
should work without.
quoted
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.
We have already solved that in clone & fetch so I don't think this is a
real problem.

-- 
Martin Waitz

Attachments

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