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

Re: cvsimport: trying to convert freebsd cvs to git

From
Jeff King <peff@peff.net>
Date
Dec 24, 2007, 03:05 UTC
Message-ID
<20071224030551.GA12495@sigill.intra.peff.net>
In-Reply-To
<20071222171801.GE15286@genesis.frugalware.org>
On Sat, Dec 22, 2007 at 06:18:01PM +0100, Miklos Vajna wrote:
Show 9 quoted lines
> $ time git cvsimport -d `pwd`/cvs -C src.git src
> Initialized empty Git repository in /home/vmiklos/git/freebsd/src.git/.git/
> malformed revision
> fatal: refs/heads/origin: not a valid SHA1
> fatal: master: not a valid SHA1
> warning: You appear to be on a branch yet to be born.
> warning: Forcing checkout of HEAD.
> fatal: just how do you expect me to merge 0 trees?
> checkout failed: 256

I looked into this a bit more. The error is definitely coming from cvsps. I can't even get a reasonable cvsps output for this repo (presumably because of behind-the-scenes hackery on the RCS files). E.g., try making a module with _just_ "src/release/Attic/MIRROR.SITES,v"; I can't even get a reasonable cvsps output on that.

You might have better results with one of the other importers that have been suggested, most of which are more robust in the face of CVS oddities.

That being said, it's awful that git-cvsimport doesn't stop when cvsps exits with an error, producing all of those meaningless errors. Patch will follow.

-Peff
Previous: Martin LanghoffNext: Jeff King
Message 6 of 9 in “cvsimport: trying to convert freebsd cvs to git”
  1. Miklos VajnaDec 22, 2007
  2. Anand KumriaDec 23, 2007
  3. David Soria ParraDec 23, 2007
  4. Jeff KingDec 23, 2007
  5. Martin LanghoffDec 23, 2007
  6. Jeff KingDec 24, 2007
  7. cvsimport: die on cvsps errorsJeff King, Dec 24, 2007
  8. Martin LanghoffDec 24, 2007
  9. Miklos VajnaDec 24, 2007

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.