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

Re: problems with importing from cvs archive

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 2, 2007, 09:39 UTC
Message-ID
<m3lk8dwi4x.fsf@roke.D-201>
In-Reply-To
<20071202064613.GB25351@venus>
"Ed S. Peschko" <esp5@pge.com> writes:
Show 12 quoted lines
> I'm trying to use git-cvsimport to import from a CVS archive, using:
> 
> git-cvsimport -d $CVSROOT
> 
> and am getting the following error:
> 
> 	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
[...]
> Or is this just a plain vanilla bug? 

I guess that you might have been bitten by (just corrected, but not in any released version yet) the bug in git-cvsimport (which is quite old, and not very well maintained) when branches are packed.

You can either try last patch to cvsimport (it is in 'master'), or unpack refs using "git reset --soft HEAD" when on given packed branch,

-- 
Jakub Narebski
Previous: Ed S. PeschkoNext: Jean-François Veillette
Message 2 of 4 in “problems with importing from cvs archive”
  1. Ed S. PeschkoDec 2, 2007
  2. Jakub NarebskiDec 2, 2007
  3. Jean-François VeilletteDec 2, 2007
  4. Jeff KingDec 2, 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.