Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-15-2011, 02:42 AM   #1
LQ Newbie
Registered: Mar 2011
Distribution: Debian, Ubuntu
Posts: 1

Rep: Reputation: 0
Question 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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
tor git repo security patch mrmnemo Linux - Newbie 5 01-17-2011 06:19 PM
generate patch between two revision from git repo harish2704 Linux - Software 2 08-06-2010 11:16 PM
How to configure git-daemon to publish my repo? CoderMan Debian 0 06-16-2009 02:18 PM
Subversion Help- applying changes in one repo to another mschrank99 Programming 3 01-01-2007 11:26 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration