threads / discuss / 11091

problems with importing from cvs archive

Subject: problems with importing from cvs archive

## tl;dr

4 messages between Dec 2, 2007 and Dec 2, 2007.

replies: 3people: 4as markdown or json

Ed S. Peschko· Dec 2, 2007, 06:46 UTC · lore
All,
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

Is git-cvsimport meant to be universal - ie: work on any given CVS worktree - or do you need to prep the CVS worktree in any way in order for it to be used?

Or is this just a plain vanilla bug? 
Thanks,
Ed
 
Jakub Narebski· Dec 2, 2007, 09:39 UTC · re: Ed S. Peschko · lore

Re: problems with importing from cvs archive

"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
Jean-François Veillette· Dec 2, 2007, 15:14 UTC · re: Ed S. Peschko · lore

Re: problems with importing from cvs archive

Le 07-12-02 à 01:46, Ed S. Peschko a écrit :
Show 5 quoted lines
> All,
>
> I'm trying to use git-cvsimport to import from a CVS archive, using:
>
> git-cvsimport -d $CVSROOT

I was able to go further just by adding the verbose mode ( -v ) : git cvsimport -v -d ...

give it a try,
- jfv
Jeff King· Dec 2, 2007, 17:07 UTC · re: Jean-François Veillette · lore

Re: problems with importing from cvs archive

On Sun, Dec 02, 2007 at 10:14:07AM -0500, Jean-François Veillette wrote:
Show 10 quoted lines
> Le 07-12-02 à 01:46, Ed S. Peschko a écrit :
>
>> All,
>>
>> I'm trying to use git-cvsimport to import from a CVS archive, using:
>>
>> git-cvsimport -d $CVSROOT
>
> I was able to go further just by adding the verbose mode ( -v ) :
> git cvsimport -v -d ...

There were some serious problems with the argument parsing of git-cvsimport with respect to finding the correct module from the git config or from your CVS working directory. This should all be fixed in v1.5.3.7; please let me know if you still have a problem with that version.

-Peff

← back to recent threads