Skip to contentSkip to conversation

problems with importing from cvs archive

DISCUSSION Ed S. Peschko 4 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 5 lines · Ed S. Peschko

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

#2 lore raw
Quoted 10 lines · Jean-François Veillette
Quoted 5 lines · Ed S. Peschko

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

#3 lore raw
In reply to Ed S. Peschko
Quoted 12 lines · Ed S. Peschko

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

[...]

Quoted 1 line

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,

Signature · 1 line
Jakub Narebski