LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-15-2011, 03:42 AM   #1
jceipek
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.
 
  


Reply


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 03:09 PM
tor git repo security patch mrmnemo Linux - Newbie 5 01-17-2011 07:19 PM
generate patch between two revision from git repo harish2704 Linux - Software 2 08-07-2010 12:16 AM
How to configure git-daemon to publish my repo? CoderMan Debian 0 06-16-2009 03:18 PM
Subversion Help- applying changes in one repo to another mschrank99 Programming 3 01-02-2007 12:26 AM


All times are GMT -5. The time now is 11:30 AM.

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