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?

  • What's the best workflow when you have one git server and several development stations?
  • Switch users in git
  • How/Where to back up local checkout of a DVCS between pushes to the server?
  • Getting REJECTED_NONFASTFORWARD in netbeans when trying to push to server
  • Use jgit to do git fetch -p
  • git rebase, keeping track of 'local' and 'remote'
  • How to handle a testing commit in git?
  • How do you split a git repo, mainaining only the history per directory?
  • Git branch is not working as I am expecting
  • Git status shows both remote and local changes
  • Committed PNG files to Git on Windows broke %PNG\r\n header
  • How to configure read-only branches in a central “development repository”?
  • 3 Solutions collect form web for “Replicating svn:externals into a git repository (Referencing git from Subversion)”

    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.

    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.

    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

    Git Baby is a git and github fan, let's start git clone.