Created
July 30, 2011 13:15
-
-
Save saltybeagle/1115512 to your computer and use it in GitHub Desktop.
pear to git move discussion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following is an email I sent to the PEAR Group on March 18th 2011. | |
Today I floated the idea of migrating PEAR(1) packages to git after hearing about more and more projects that have seen an increase in contributions once moving their code to a more social environment (github). | |
Right now we have three accounts, http://github.com/pear, http://github.com/pear2, and http://github.com/pyrus — each are organizations which can have teams of developers with push access to repositories (see how PEAR2 is configured if you're interested in checking it out). | |
I would like to first endorse migrating to github as an option for pear packages. Then after some feedback from more developers perhaps migrate more packages. | |
Below are the details on how I moved all of the PEAR2 base components to github. This process is something that can be scripted if necessary. | |
---------- Forwarded message ---------- | |
From: Brett Bieber <brett.bieber@gmail.com> | |
Date: 2011/3/3 | |
Subject: git migration | |
To: Helgi Þormar Þorbjörnsson <helgith@gmail.com> | |
Ok, svn2git supports standard svn layouts and preserves tags and branches etc, so that tool is essential. I found a git repo that has support for starting from a specific resvision, which is really nice since svn.php.net is HUUGE. That fork is here: https://github.com/svenax/svn2git and the first rev for /repository/pear2 is 284750, so starting from that will work much faster. | |
First, the steps on getting svn2git installed: | |
mkdir svn2git | |
cd svn2git | |
svn clone https://github.com/svenax/svn2git.git . | |
gem build svn2git.gemspec | |
sudo gem install svn2git-2.0.0.gem | |
Weee! svn2git uses an authors file in ~/.svn2git/authors (attached), so put that in place. Now create the repository on github for the package, and then we'll convert it. | |
mkdir PEAR2_Templates_Savant | |
cd PEAR2_Templates_Savant | |
svn2git http://svn.php.net/repository/pear2/Templates_Savant --revision 284750 | |
git remote add origin git@github.com:pear2/PEAR2_Templates_Savant.git | |
git push -u origin master | |
Tada! Which package is next!?!? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment