Skip to content
ritzalam edited this page Nov 19, 2011 · 9 revisions

Welcome to the red5 mirror repository!

This is a mirror of the Red5 SVN repository at http://code.google.com/p/red5/source/checkout

Synching with Red5 trunk

First, clone the git repository

git clone git@github.com:ritzalam/red5.git

Go to the git repo dir

cd red5

We need to tell git where the svn repository is located.

vi .git/config

Add the following to the end of .git/config

[svn-remote "red5/trunk"]
  url = http://red5.googlecode.com/svn/java/server/trunk
  fetch = :refs/remotes/red5/trunk

Now, let's determine the last Red5 commit that we have mirrored.

git log

Here we see that we have up mirrored up until r4219 and that it's git commit id is 1501658da7b3f1b7785f24ddd1f27789495bf5de

commit 1501658da7b3f1b7785f24ddd1f27789495bf5de
Author: mondain <mondain@1b6495e4-3631-0410-8e05-8f51eee8b9cc>
Date:   Fri Apr 29 16:24:19 2011 +0000

    Added helpful log entry for AMF deserialization of custom classes. Added null checks to connection close.

    git-svn-id: http://red5.googlecode.com/svn/java/server/trunk@4219 1b6495e4-3631-0410-8e05-8f51eee8b9cc

Fetch the last commit from Red5

git svn fetch red5/trunk -r4219

We init our local git repo of the last commit id.

echo 1501658da7b3f1b7785f24ddd1f27789495bf5de > .git/refs/remotes/red5/trunk

Then we update to the latest git commit

git svn red5/trunk rebase

Push the changes to remote git repository.

git push origin master

How to create a patch

git diff --no-prefix > patchfile

Sources:

http://trac.parrot.org/parrot/wiki/git-svn-tutorial

http://hassox.blogspot.com/2007/12/using-git-with-svn.html

Clone this wiki locally