Corresponding ticket: tails#7036 (closed)
Tails is built from many sources: the main Git repository and our APT repository (that includes binary packages built from other Git repositories).
- See the "Diversions of bundled packages due to Tails point-releases" thread on tails-dev, in August and September 2013.
- Make it easier to determine what status of every sub-repo was used to build an existing ISO.
- Make it easier to decide what status of every sub-repo shall be used to build a new ISO.
- Simplify merging of topic and release branches: right now, we often have to merge things in two Git repositories (or more), and in the APT repository.
- Build most of our custom Debian packages at ISO build time, so that at least for those, the state of our APT repository doesn't matter.
- More continuous integration!
A few teams, such as the debian-installer and Debian Perl ones, that use many Git repositories (thousands, in case of the latter), have been successfully using mr to make an initial checkout easier for new contributors, and generally making it easier to deal with a lot of repositories (mass-update, etc.). We could do the same, starting with maintaining and publishing a .mrconfig file. The problem with mr is that it doesn't support branches out-of-the-box: checking out a branch in the main repo doesn't do the same in sub-repos; this could be automatized, but merging is another story.
Git submodules allow to do basically the same thing, but also to make it clear what version of these other repositories a given Git branch (in the main repo) needs.
One problem with submodules is that the URL to every submodule's
repository is encoded in
.gitmodules. So, either we encode read-only
URLs in there (and then, core developers need to use
insteadOf in their Git configuration to rewrite these URLs
on-the-fly), or we encode read-write URLs in
.gitmodules (and then,
non-core developers have to use
Plenty of other solutions
When searching the web for well-known problems with Git submodules, it's easy to find many other similar solutions or wrappers that are meant to workaround these limitations.