git-cvsserver: Index already exists in git repo
- From
Mirko Stocker <mirko.stocker@hsr.ch>
- Date
- Jun 17, 2008, 12:09 UTC
- Message-ID
- <200806171409.25572.mirko.stocker@hsr.ch>
Hi
I'm using git-cvsimport (with -i) to import an existing repository, which I then clone for development. Now, we have some guys here that'd rather continue to use the Eclipse CVS plug-in than working directly with Git, so I thought I could tell them to try git-cvsserver.
Now, git-cvsserver complains about an existing index file in the server repository. If I just remove the index file on the server, everything seems to work just fine. But 'rm .git/index' just doesn't feel right... what I understand so far: the index file seems to contain information about the files in the tree, but it doesn't exist in a bare repository. So, is there a way to 'convert' a repository to a bare repository so that git-cvsimport and git-cvsserver still work on it? Or, how would you do it?
Thanks!
Mirko
-- Mirko Stocker Institut für Software - http://ifs.hsr.ch - +41 55 222 4713 HSR Hochschule für Technik Rapperswil Oberseestr 10, Postfach 1475, CH-8640 Rapperswil