Clusty
Clusty

Reputation: 117

Svn externals > git submodules

I am trying to asses the feasibility of converting our jumbo SVN repo to git. The major issue is that the project has a few hundred externals, some of which are quite beefy.

So far I have created a script that recursively clones all svn externals into their own git repo, and then the main repo defines a whole lot of submodules pointing to my git clones.

The main issue is it seems the externals taking twice the space they should (the clone and the submodule). Is there a way to have only 1 shared instance of the external clones ?

Upvotes: 0

Views: 432

Answers (1)

VonC
VonC

Reputation: 1328732

The main issue is it seems the externals taking twice the space they should (the clone and the submodule).

If by twice you mean:

  • the submodule repo
  • the submodule folder within the main repo, which references the first one

Then it should not be quite twice: the first one (submodule repo) should be a bare one (or can be made bare), avoiding to keep two working tree with all their files.

Upvotes: 1

Related Questions