Version 2 (modified by mathieu, 4 years ago)

WIP need to import workflows

git mirror

As of March 2010, an experiment in mirroring the svn source repository to git has been started. Information 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 : http://gitorious.org/openscenegraph/osg

Workflow

Read-Only

Contributor

Mirorring process

The mirorring process was fairly simple :

  1. use svn2git (my mirror added a --continue flag if the execution failed the svn fetch process) :
    ~ $ svn2git http://www.openscenegraph.org/svn/osg/OpenSceneGraph
  2. 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
  3. 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
  4. 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