git/list[1] front-page[2] threads[3] people[4] search[5] about
 

cvs importer woes

From
Andreas Ericsson <ae@op5.se>
Date
Jun 27, 2006, 10:05 UTC
Message-ID
<44A102F0.9090604@op5.se>

Sadly, the cvsimport command no longer works to create new repositories from scratch. I'm not nearly perl literate enough to fix it, but the problem seems to be firstly 061303f0b50a648db8e0af23791fc56181f6bf93. In particular "Also, make sure that the initial git-read-tree is performed." which fails if there is not a complete git repo already created with at least one tree committed.

Some sample output:

$ git cvsimport -k -u -d:local:/home/CVS packages fatal: Not a git repository: '/data/home/exon/git/packages/.git' read-tree failed: 32768

Removing the unconditional read-tree call, I get this (still in an empty directory which isn't a repo):

$ git cvsimport -k -u -d:local:/home/CVS packages fatal: Not a git repository: '/data/home/exon/git/packages/.git' read-tree failed: 32768

$ git init-db defaulting to local storage area

$ git cvsimport -k -u -d:local:/home/CVS packages fatal: Not a valid object name origin read-tree failed: 32768

Bisect running now. v1.3.1 is good and imports the stuff properly to an empty directory.

Oh, now it's done (4 minutes for 620 revisions with automated testing between good/bad. *LOVE* bisect).

The culprit is definitely 061303f0b50a648db8e0af23791fc56181f6bf93.

Any perl-literate takers? Otherwise, just reverting the patch makes things work (for me) again.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Next: Johannes Schindelin
Message 1 of 7 in “cvs importer woes”
  1. Andreas EricssonJun 27, 2006
  2. [TRYTHIS] cvsimport: fix initial importJohannes Schindelin, Jun 27, 2006
  3. Andreas EricssonJun 27, 2006
  4. Martin LanghoffJun 27, 2006
  5. Johannes SchindelinJun 27, 2006
  6. Martin LanghoffJun 27, 2006
  7. Andreas EricssonJun 27, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.