MadBlog
Thursday 31 May 2007

User git repositories on alioth \o/

Thanks to a completely trivial patch on how git-daemon was used on alioth (namely adding a --user-path=public_git in the command line) it's now possible to have per user git repositories on git.debian.org.

You now have mirrors of my own git repositories, especially apt-listchanges on git://git.debian.org/~madcoder/apt-listchanges.git. That rocks.

Thanks a lot to Raphaël Herzog that kindly made the change.

Notes

  • if you want to do the same, you just have to create a public_git/ directory in your ${HOME}, it works for git-daemon like public_html does for httpd :)
  • your ${HOME} on alioth isn't backuped, but any git repository clone is a full backup so …
Tuesday 29 May 2007

Dear Eric ... you should use git-svn

Dear Eric, the best way to import a svn repository into git is to use git-svn (in a separate package in debian). It works that way:

$ git svn clone svn+ssh://path-to-the-root-of-your-repo -t foo/trunk -b foo/branches -T foo/tags

then just wait. foo/{trunk,branches,tags} is in case you want to import one subproject foo from your repository, and of course you don't need to specify it if you want the root of your repository.

git-svn is in fact a two way bridge between git and subversion, and works fine as an importer as well :) That's what I use to work with pkg-glibc svn.