I have legacy projects that is using a submodule which resides on git.
There are a lot of ways and tools that supports migrating to git and/or submoduling a svn project from git, but what I need is exactly the opposite.
Since they are legacy projects beyond my control, I cannot migrate them to git.
What I need is just whenever I push to origin/master on the git, I’d like the svn-projects to be able to grab that changes automatically whenever they do “svn up” or “svn co”
Is there any way to achieve this?
I have tried svn:externals but they dont support git submodule… any clues will be appreciated. Thanks!
As a solution I can propose to install SubGit into both repositories — it will create a Git interface for SVN repository and SVN interface for Git. Then you can add svn:externals to the main repository for SVN interface and add a submodule to its (the same main repository’s) Git, interface using SVN and Git interfaces of your slave repository.
To install SubGit for Git repository run:
To install SubGit into SVN repository, perform the same steps, but use existing SVN path instead of svn.repository and non-existing path for git.default.repository (a Git repository will be created at this path).
SubGit will keep in sync both interfaces of every repository, both interfaces are writable.
Hope, this helps.