Skip to contentSkip to conversation

git-cvsserver: Index already exists in git repo

DISCUSSION Mirko Stocker 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

Signature · 4 lines
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