Best way to automate copying of Git repo to subversion repo?
I set up a continuous integration server (Jenkins) using a bare bones Ubuntu server install running a basic Xorg desktop (for testing graphical programs), an SMTP server, and the Jenkins web server.
Using this system, I can automatically compile and run code every time the Git repository where my team's code is stored is updated.
However, I need to find a good way to copy over the Git repository to a Subversion repository hosted offsite every time new code is committed. Ideally, I would like to preserve commit messages as well.
At the moment, I am using a hackish python script that copies over all of the files from the project to a subversion directory, uses svn add * to add every file in the project to the repository, and then checks in the project with a message retrieved from git log. This method seems extremely inelegant because it is inefficient and attempts to add every file to the svn repo even if it has been added before. Furthermore, it fails whenever a file is renamed, moved, or removed from the Git repo.
I've been looking around the web, but I haven't been able to find anything useful so far.
Thanks in advance to anyone who can point me in the right direction.
|All times are GMT -5. The time now is 09:54 AM.|