I'm using git as the revision control software for a project. My project needs to use a 3rd party code library which uses SVN for its revision control software. (In this case the 3rd party code is a PHP framework called Yii, not that it is very relevant to the question).
Is there a way to set up a external dependency in git that can help pull in code from a external SVN repository and keep it up to date?
If my project was using SVN, it would be trivial to set up because I would just do:
> svn propset svn:externals yii-1.1.6 https://yii.googlecode.com/svn/tags/1.1.6/framework
...then, whenever I did a svn checkout
(or svn update
), I would suck down the yii codebase into a local folder called "yii-1.1.6
". Can I do something similar in git? Does anyone have an example in a public github repo that I can copy? I'm sure it must be a common need?