git svn - clone repo with all externals

wowpatrick picture wowpatrick · Jul 17, 2012 · Viewed 9.9k times · Source

I want to use git to clone a svn repository, but unfortunately, where svn checkout gets the repo with all externals, git svn clone only gets the repository without externals. How can I get the externals from the svn repository via git svn? I don't want to do any fancy stuff, just get the the complet repo with externals.

Answer

Dmitry Pavlenko picture Dmitry Pavlenko · Jul 17, 2012

git-svn doesn't support externals, but you may try SmartGit instead of git-svn. It supports svn:externals, converting them into .gitsvnextmodules file and displaying as modules. The only restriction: you should clone the repository with SmartGit instead of opening already existing git-svn repository.