threads / discuss / 14002

git-cvsserver: Index already exists in git repo

Subject: git-cvsserver: Index already exists in git repo

## tl;dr

One message between Jun 17, 2008 and Jun 17, 2008.

replies: 0people: 1as markdown or json

Mirko Stocker· Jun 17, 2008, 12:09 UTC · lore
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

← back to recent threads