Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure (or mimic) svn:externals to include code from Github in a svn-hosted project

We use Subversion locally, and we're working on a project that uses a fork of Fluent NHibernate, which is hosted on Github.

I'd like it set up so that a single svn checkout will retrieve everything necessary to build the project, but maintain the ability to fetch HEAD updates from github.

Is there any way I can pull code from the Git repository as though it was an svn:external dependency? Can I just check the .git folder into our Subversion repository and just run git fetch when I need to, then svn commit the results?

like image 627
Dylan Beattie Avatar asked Feb 05 '10 11:02

Dylan Beattie


1 Answers

http://github.com/blog/626-announcing-svn-support says

$ svn checkout https://github.com/USER/PROJECT/trunk

works. So use that URL for your svn:externals.

like image 75
ndim Avatar answered Sep 24 '22 14:09

ndim