| Version 1 (modified by mathieu, 3 years ago) |
|---|
git mirror
As of March 2010, an experiment in mirroring the svn source repository to git has been started. Informations on how to use and contribute are listed below.
Requisits
git, obviously :
- on Windows :
- test
- on Mac :
- gitx
- on Linux
- test
Location
The mirror is hosted on github AND gitorious see comments at the end of this page on pros ans cons of these services
on github : http://github.com/openscenegraph/osg on gitorious : hhttp://gitorious.org/openscenegraph/osg
The mirorring process was fairly simple :
- use svn2git (my mirror added a --continue flag if the execution failed the svn fetch process) :
~ $ svn2git http://www.openscenegraph.org/svn/osg/OpenSceneGraph
- add remotes to push changes to
~/OpenSceneGraph $ git remote add github git@github.com:openscenegraph/osg.git ~/OpenSceneGraph $ git remote add gitorious git@gitorious.org:openscenegraph/osg.git
- create a shell script osg-svn2git.sh to update and push changes
#!/bin/sh cd ~/OpenSceneGraph /usr/bin/git svn fetch /usr/bin/git merge trunk /usr/bin/git push --mirror gitorious /usr/bin/git push --mirror github
- add the shell script to the crontab
*/5 * * * * ~/osg-svn2git.sh
Services Pros & Cons
| github | gitorious | |
| downloads | + source archive per tag | - manual upload of archives |
Attachments
- osg-contributor-fork.png (7.7 kB) - added by mathieu 3 years ago.
- osg-contributor-repositories.png (25.0 kB) - added by mathieu 3 years ago.
