From: "Thomas Adam" <thomas.adam22@gmail.com>
To: "Mark Levedahl" <mlevedahl@gmail.com>
Cc: "git mailing list" <git@vger.kernel.org>
Subject: Re: Submodules: Publishing a locally created submodule.
Date: Fri, 25 Jul 2008 01:05:44 +0100 [thread overview]
Message-ID: <18071eea0807241705j1359bc7ei46d74540d9090f6d@mail.gmail.com> (raw)
In-Reply-To: <48891088.40709@gmail.com>
Hello --
2008/7/25 Mark Levedahl <mlevedahl@gmail.com>:
> git submodule add <URL where this will exist> ./mysubmoduleB
>
> will recognize that mysubmoduleB is already a valid git repo and add it as
> is at the current location to the superproject.
Ah -- now that was missing from the documentation (the syntax; not the
intention.) Thanks.
It seems my brain has turned to mush so I need to go back to square
one and verify the steps for this are accurate. If I am doing this
arse-about-face, do say. ;)
I've mentioned I am using a bare repository which is shared amongst
developers. We've been using one fine for normal development and for
various reaons I am creating a new repository to be filled with
submodules. I shall call this "SM".
Our "superproject" is a directory hierarchy with interspersed files.
On the server I did this:
server% cd /usr/src/SM
server% git init
server% cd ./superproject
server% git init
server% git add .
server% git commit -m "Initial checkin"
server% cd ..
server% git submodule add /path/to/usr/src/SM
server% git commit -a -m "Submodules..."
Then cloned a bare repo from that which I was able to clone locally
and do stuff in. I could push stuff out too for that one project.
But how from this clone do I then publish any further submodules I
might create locally? I can't very well do so directly in my checkout
-- it has no concept of where the submodules are. I could go to the
server, add another directory as a submodule (as I've done with
"superproject" above --- but then any changes under /usr/src/SM on the
server are local -- the bare repo has no knowledge of any changes made
there.
Does this even make sense? ;)
Thanks in advance.
-- Thomas Adam
prev parent reply other threads:[~2008-07-25 0:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-24 15:40 Submodules: Publishing a locally created submodule Thomas Adam
2008-07-24 16:21 ` Sean Estabrooks
2008-07-24 23:30 ` Mark Levedahl
2008-07-25 0:05 ` Thomas Adam [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=18071eea0807241705j1359bc7ei46d74540d9090f6d@mail.gmail.com \
--to=thomas.adam22@gmail.com \
--cc=git@vger.kernel.org \
--cc=mlevedahl@gmail.com \
/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).