Re: Cvs2Svn file corruption issue
Michael Haggerty <[email protected]> Fri, 19 Dec 2014 10:34:29 +0100
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.devel |
|---|---|
| Message-ID | <[email protected]> |
On 12/17/2014 01:44 PM, Vishal Bhamawat wrote:
> We have encountered a compilation problem after checkout form Git
> (Configured on local System) .
>=20
> Find file location ,steps and error below.
>=20
> *File Locations:*
> /home/yesv2rep/CVSROOT
> /home/yesv2rep/Integrated_UK_EVT
>=20
> *Steps:*
> 1. cd cvs2svn-2.4.0/
> 2. mkdir tmp
> 3. ./cvs2git --dumpfile=3Dtmp/git-dump.dat --blobfile=3Dtmp/git-blob.dat
> --username=3Dcvs2git --retain-conflicting-attic- files
> ../CVSRepo/Integrated_UK_EVT/
> 4. mkdir Repo
> 5. cd Repo/ =20
> 6. mkdir Integrated_UK_EVT.git
> 7. cd Integrated_UK_EVT.git/ =20
> 8. git init --bare
> 9. cat ../../cvs2svn-2.4.0/tmp/git-{blob,dump}.dat | git fast-import
> 10. cd ../
> 11. git clone Repo/Integrated_UK_EVT.git/
>=20
> *ERROR:*
>=20
> [javac] error: error reading E:\workspace\lib\xerces.jar; invalid END
> header (bad central directory offset)
> [javac] error: error reading E:\workspace\lib\tools.jar; invalid END
> header (bad central directory offset)
> [javac] 2 errors
OK, so obviously the two JAR files that are mentioned are corrupt. I
assume that they are checked out from git?
Such problems are almost always caused by end-of-line conversion
problems either before the conversion (in CVS) or after the conversion
(in git).
The first question is whether the files were already corrupt in CVS. Try
doing a fresh checkout from CVS *on the same computer*, and check
whether the files are OK there. If the files were already corrupt in
CVS, then you might be able to save the situation by marking them as
binary in CVS and then trying another fresh checkout.
Second, was the source a standard CVS repository, or were you using
CVSNT? If the latter, then there are some things that you have to be
careful of to maximize the chance of a successful conversion. See
http://cvs2svn.tigris.org/faq.html#cvsnt
Very likely one of those is the source of your problem. If not, let us
know and we can look into less likely causes.
Michael
--=20
Michael Haggerty
[email protected]
------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=3D1667&dsMessageId=3D=
3093025
To unsubscribe from this discussion, e-mail: [[email protected]=
s.org].