From: Andreas Ericsson <ae@op5•se>
To: John Szakmeister <john@szakmeister•net>
Cc: Git mailing list <git@vger•kernel.org>
Subject: Re: Nesting a submodule inside of another...
Date: Wed, 13 Jul 2011 10:43:47 +0200 [thread overview]
Message-ID: <4E1D5AC3.5050409@op5.se> (raw)
In-Reply-To: <CAEBDL5XQDehUyqKoazxy+YVHh_2iAyt9aE-77H1jZg4oujMJgw@mail.gmail.com>
On 07/12/2011 02:01 PM, John Szakmeister wrote:
> Hi all,
>
> I've got a project where we have several frameworks involved, and
> external modules we want to pull into the framework tree. We'd like
> to make use of submodules and have something like this:
> top-level/<-- .gitmodules lives here
> src/
> framework1/<-- a submodule
> module/<-- another submodule
> framework2/<-- a submodule
> module2/<-- another submodule
>
> Currently, git fails trying to do this. It's not happy about
> .gitmodules living at the top-level and nesting a submodule inside of
> another[1]. Is there a technical reason that this is not allowed?
Yes. Everything inside a submodule is owned by that submodule, so the
master repo can't know anything about it. You can have a submodule
which in turn has submodules though. If you couldn't, it wouldn't be
possible to checkout only the framework1 repository and get all its
dependencies.
I have no idea what problems you run into with more than 2 tiers of
submodules though, but I guess that's for you to find out and report
about.
--
Andreas Ericsson andreas.ericsson@op5•se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
prev parent reply other threads:[~2011-07-13 8:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-12 12:01 Nesting a submodule inside of another John Szakmeister
2011-07-12 19:23 ` Jens Lehmann
2011-07-13 1:21 ` John Szakmeister
2011-07-13 21:20 ` Jens Lehmann
2011-07-13 21:27 ` Junio C Hamano
2011-07-13 22:04 ` Jens Lehmann
2011-07-13 22:44 ` Junio C Hamano
2011-07-14 9:36 ` John Szakmeister
2011-07-14 14:33 ` Seth Robertson
2011-07-15 8:34 ` John Szakmeister
2011-07-13 8:43 ` Andreas Ericsson [this message]
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=4E1D5AC3.5050409@op5.se \
--to=ae@op5$(echo .)se \
--cc=git@vger$(echo .)kernel.org \
--cc=john@szakmeister$(echo .)net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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