RE: Problems with git cvsimport
- From
- Raimund Bauer <ray@softwarelandschaft.com>
- Date
- Feb 28, 2007, 13:27 UTC
- Message-ID
- <000c01c75b3c$31f91000$0b0aa8c0@abf.local>
- In-Reply-To
- <Pine.LNX.4.63.0702271700300.22628@wbgn013.biozentrum.uni-wuerzburg.de>
> Sorry to have missed that earlier. AFAIR cvsimport _needs_ > cvsps 2.1. You > have version 2.0rc1, which is not sufficient...
OK, thanks a lot, now that I'm using cvsps especially for git from http://ydirson.free.fr/en/software/scm/cvsps.html things are looking a bit better.
There are some modules I can import with relative little noise. Not sure why I needed to do 'checkout -f' to get all the files in the working directory, but I got no problem with that.
For some other modules it doesn't work at all. I.e. trying
$ git cvsimport -d :pserver:ray007@cvs.drupal.org:/cvs/drupal-contrib -C localizer -a contributions/modules/localizer Initialized empty Git repository in /home/ray/drupal/modules/localizer/.git/ file 'CHANGELOG.txt; pre_rev:INITIAL; post_rev:1.1; dead:0; branch_point:0 ' not found in hash 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
Any hint what I have done wrong?
Doing a normal cvs checkout works, trying to do a git-cvsimport in the checked-out directory fails with the same error again.
For trying out, username=anonymous, password=anonymous should work. Or to just see what's in the repo, you can have a look at http://cvs.drupal.org/viewcvs/drupal/contributions/modules/localizer/ to see the repo I tried in the example above.
My perl knowledge is _very_ limited, but I'll have a look at the script too ...
-- best regards Ray