NB Thank you for the lively discussion!
On Wed, 20 Apr 2016, Stefan Beller wrote:
> >> So currently the protocol doesn't allow to even specify the submodules
> >> directories.
> > Depends on what you exactly mean by "the protocol", but the
> > networking protocol is about accessing a single repository. It is
> > up to you to decide where to go next after learning what you can
> > learn from the result, typically by following what appears in
> > the .gitmodules file.
> Right. But the .gitmodules file is not sufficient.
why?
> >...<
> I think on a hosting site they could even coexist when having the
> layout as above.
> top.git/
> top.git/refs/{heads,tags,...}/...
> top.git/objects/...
> sub.git/
> sub.git/refs/{heads,tags,...}/...
> sub.git/objects/...
> # the following only exist in non bare:
> top.git/modules/sub.git/
> top.git/modules/sub.git/refs/{heads,tags,...}/...
> top.git/modules/sub.git/objects/...
> The later files would be more reflective of what you *really*
> want if you clone from top.git.
may be there is no need for assumptions and .gitmodules should be
sufficient?
- absolute url in .gitmodules provides absolute URL/path to the
submodule of interest, regardless either submodule is present in
originating repository as updated submodule. Either cloning it
instead of original repository would be more efficient is already a
heuristic which might fail miserably (may be I have a faster
connection to the original repository pointed by the absolute
url than to this particular repository)
- relative url in .gitmodules provides relative location to the location
of the "top" repository, and that is only when that submodule "absolute"
url should be resolved relative to the one of the "top" repository
NB I will consider it a separate issue either relative paths
without '../' prefix are having any sense in bare repositories.
or have I missed the point?
--
Yaroslav O. Halchenko
Center for Open Neuroscience http://centerforopenneuroscience.org
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419
WWW: http://www.linkedin.com/in/yarik
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html