A Git mirror for Drupal CVS

Published on Tue, 2008-02-19 - 13:01

For some weeks, I have on-and-off been trying to create my own mirror of cvs.drupal.org in Git, and now it seems I've finally succeeded.

I have set it up with Gitweb and everything, and it seems to have complete fidelity with regards to the original data. It has all the branches/heads and tags that Drupal has, meaning that you can use checkouts from this reppository to keep your Drupal installations up-to-date.

Here's the links:

Github: http://github.com/mikl/drupal/tree/master
Repository (git clone this): git://github.com/mikl/drupal.git

I am currently working on a cron job to keep it up to date. I'll set it up to update from cvs.drupal.org every 6 hours or so. I think that's sensible, but if you have a better opinion, feel free to post it below.

I do hope that this could get to be an official thing, hosted at git.drupal.org and everything, but for now, I just hope that you guys won't wreck my server by hitting Gitweb like there's no tomorrow :)

For those interested, here's the command to create such a repository, though a fair warning should be in order: It takes hours to do and probably generates a fair bit of load on cvs.drupal.org, so unless you have a solid reason to do so, you should just clone my repository with Git!

With no further ado, the command:

git-cvsimport -v -d:pserver:anonymous@cvs.drupal.org:/cvs/drupal -o upstream drupal

If this fails, you will probably need to do a CVS login first, like this:

cvs -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal login

If you have a Drupal CVS account, you should be able to use that as well.

Update 2008-10-11:

Since my server is kinda hard to get to, I've started pushing the aforementioned repository to Github instead. I've changed the URLs above.

Tags

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.