Skip to contentSkip to conversation

Switching to GIT.

DISCUSSION David Woodhouse 1 participant 2 messages Apr 11, 2006 – Apr 18, 2006 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

I think it's about time for us to switch to git -- the CVS repository isn't really working too well. It was OK for a long time because I could let people play with things in CVS and then clean it up to merge it upstream, but that hasn't really worked for us with recent JFFS2 changes, partly because I haven't had much time to do that and the changes have been too intrusive for me to keep up with them properly.

I think the better way to do things like that would be for people to have their own git tree with stuff like EBH, xattr support, and then others can use it from there -- it doesn't have to be merged directly into CVS _first_. Once it's all working and stable, _then_ we can merge it into the main tree.

I'd also like to retire the machine which is cvs.infradead.org at some point, so the git service is all on pentafluge.infradead.org (aka git.infradead.org). If you don't have an account there yet, you'll need to ask me to set it up for you.

Users can create git trees in their ~/public_git/treename.git which will be publicly accessible as git://git.infradead.org/~whoever/treename.git

There's a clean copy of Linus' kernel tree in /home/git/linux-2.6.git which is updated nightly, and also the 'official' MTD tree next to it -- please clone from one of those using 'alternates' instead of creating an entirely new tree with all its own objects. For example:

     git-clone -l -n -s --bare /home/git/linux-2.6.git blah-2.6.git

There's also gitweb running on http://git.infradead.org/ but it doesn't scan the users' home directories yet. Feel free to send me patches against gitweb.cgi.

The MTD tree is now at git://git.infradead.org/mtd-2.6.git and the utilities are at git://git.infradead.org/mtd-utils.git

The latter has just been imported directly from CVS and probably doesn't build yet. The former is currently a clean copy of Linus' tree -- I'll be cherry-picking some stuff from CVS shortly.

I haven't yet sorted out a script to feed the commits list, although it shouldn't be hard. It's just a special case of the one I already use to feed the git-commits lists on kernel.org.

Signature · 1 line
dwmw2
#1 lore raw
Quoted 3 lines · David Woodhouse

There's also gitweb running on http://git.infradead.org/ but it doesn't scan the users' home directories yet. Feel free to send me patches against gitweb.cgi.

This is now fixed -- users' public_git directories are scanned by a cron job every five minutes and an index is created. We only look for _bare_ repositories _directly_ under your ~/public_git directory -- i.e. the script looks for ~/public_git/*/HEAD files.

If you have a deeper directory structure, or if your repository isn't a bare repository, then it won't find your trees. It also won't find them if your home directory isn't world-executable.

The switch to git seems to be working out OK so far. It should be fairly simple for anyone to create git trees and ask me to pull from them -- I'd prefer that rather than patches in mail, if possible. Please make sure your tree is based on the current contents of the mtd-2.6.git tree though, to reduce the number of merges we have.

Signature · 1 line
dwmw2