Francis Tyers <[email protected]> writes: > Would it be possible to : > > * check out the whole repo
git clone --recursive https://github.com/unhammer/svnroot
> * check out an individual directory -- all submodules
git clone --recursive https://github.com/unhammer/nursery
> * check out an individual submodule
git clone https://github.com/unhammer/apertium-nor-eng
(no --recursive needed since no more submodules, but doesn't hurt to
include it either)
Adding a new submodule is easy, just
git submodule add https://github.com/unhammer/apertium-bar-cow
git commit
However, beyond that, submodules are a bit more hassle to use than plain
SVN parent directories. When doing "git submodule add" and commit, your
commit contains not only the URL of the submodule, but also the specific
revision it should be at.
This means that after new commits have happened in submodules, you have
to run a command "git submodule update --remote --merge" in the parent
module to make it get those updates – or someone has to set up a cron
job that does that and then commits and pushes so the next person
cloning/pulling will get the newest submodule commits.
Also, when you cd into a submodule, it won't be at the master branch,
but at whatever commit is referred to by the supermodule (meaning you
typically have to first "git checkout master" before making changes in
the submodule).
And as has been mentioned, if you want all of trunk/nursery/svnroot/…
you have to use git, the github SVN interface will just give you a
nearly-empty directory.
So that's a downside to using git submodules as an alternative to the
current SVN directories. Now, most people who are interested in
contributing will just check out apertium-bar-cow etc. directly (not
bothering with all of incubator etc.) but having to depend on a cronjob
for keeping incubator/languages/… up-to-date sounds like a step
backward :-/
(On the other hand: Are there any alternatives to SourceForge – which
are more reliable and FOSS-friendly than SourceForge – for SVN hosting?)
--
Kevin Brubeck Unhammer
GPG: 0x766AC60C
signature.asc
Description: PGP signature
------------------------------------------------------------------------------
_______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
