Discussion:
cvs2git : git fast-import fails with "fatal: Unsupported command: :1"
Jaromir Capik
2014-03-04 16:35:10 UTC
Permalink
Hello everyone.

I tried to use cvs2git on a SourceForge CVS repository
and got the following message:

-------
fatal: Unsupported command: :1 3059214c3439aeb08bcbb7f3ac3df94c568d3495
fast-import: dumping crash report to fast_import_crash_18870
-------

I tried that with several different project subdirectories and
it's always the very first mark that fails, but even of that,
the resulting git repository seems to conatin correct data.

I created a testing package where I kept just one subdirectory
with few files, but the problem is well reproducible even with
a subset of files ...

http://jcapik.fedorapeople.org/files/cvs2git/TEST.tgz

Just unpack the content somewhere and change the username
in the conversion script. The conversion script should
throw the message above.

These are the versions I have installed:
cvs2git-2.3.0-0.9.r5319svn.fc20.noarch
git-1.8.4.2-1.fc20.x86_64

Please, help me with troubleshooting.

Thanks in advance.

Regards,
Jaromir.

--
Jaromir Capik
Red Hat Czech, s.r.o.
Software Engineer / Secondary Arch

Email: ***@redhat.com
Web: www.cz.redhat.com
Red Hat Czech s.r.o., Purkynova 99/71, 612 45, Brno, Czech Republic
IC: 27690016

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1667&dsMessageId=3074005

To unsubscribe from this discussion, e-mail: [dev-***@cvs2svn.tigris.org].
Michael Haggerty
2014-03-04 22:54:34 UTC
Permalink
Post by Jaromir Capik
I tried to use cvs2git on a SourceForge CVS repository
-------
fatal: Unsupported command: :1 3059214c3439aeb08bcbb7f3ac3df94c568d3495
fast-import: dumping crash report to fast_import_crash_18870
-------
[...]
Just unpack the content somewhere and change the username
in the conversion script. The conversion script should
throw the message above.
The problem is that your conversion script has the following lines:

git fast-import --export-marks=../../git-marks.dat < ../../cp.blob
git fast-import --import-marks=../../git-marks.dat < ../../cp.dump
cat ../../git-marks.dat ../../cp.dump | git fast-import

The first two lines do exactly the same thing as the third line. You
need *either* the first two lines *or* the third line, not both.
Post by Jaromir Capik
cvs2git-2.3.0-0.9.r5319svn.fc20.noarch
git-1.8.4.2-1.fc20.x86_64
Version 2.3.0 of cvs2git is quite old. I recommend that you use at
least version 2.4.0, or even better the trunk version.

Michael
--
Michael Haggerty
***@alum.mit.edu
http://softwareswirl.blogspot.com/

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1667&dsMessageId=3074039

To unsubscribe from this discussion, e-mail: [dev-***@cvs2svn.tigris.org].
Loading...