Simon Featherstone
Simon Featherstone

Reputation: 1796

Replicating svn:externals into a git repository (Referencing git from Subversion)

We have a Subversion repository that is not going to move to git in the short to medium term, but I would like to use a DVCS for controlling and versioning 3rd party libraries.

Is there a way of using something like svn:externals to fetch/link a revision from git, driven by the Subversion checkout?

Upvotes: 3

Views: 1135

Answers (3)

Dmitry Pavlenko
Dmitry Pavlenko

Reputation: 8978

You may clone your SVN repository with SmartGit. It will create .gitsvnextmodules file that is analog to svn:externals for Git. SmartGit fully supports this format and displays submodules in the "Directories" view. To update .gitsvnextmodules using UI select a submodule among "Directory" and press Stage.

Upvotes: 2

Henrik
Henrik

Reputation: 362

I'm not sure we have exactly the same problem, but I created a script to solve a similar issue: http://github.com/eneroth/git-externals

Upvotes: 1

Rudi
Rudi

Reputation: 19950

There is no direct way to do this, since svn:externals are restricted to subversion repositories. You might use github for the git repositories, since github has read+write support for svn.

Upvotes: 4

Related Questions