(Reformatted in a sensible way. Please do not top-post.)

On Wed, Jan 25, 2023 at 08:59:12PM +0530, Narendra Naren wrote:

> > > I just converted a Java project from CVS to GIT, and since then I
> > > receive the following error: error reading commons-logging.jar; invalid
> > > END header (bad central directory offset).
> >
> > You did not explain what exactly do you do to "receive the ... error", but
> > I suppose it happens during building of your project or, say, attempting
> > to open it in some IDE or something like this.
> > 
> > The error itself means that particular JAR file is corrupt (you could have
> > learned this yourself, should you have searched the 'net for the exact
> > error
> > message. BTW JAR files are mere ZIP archives.)
> >
> > The exact cause of this is, of course, impossible to reconstuct as your
> > question seems to presuppose there exist a single way to convert a CVS
> > repository to Git, so that the error is common and well understood.
> > Unfortunately, this is not the case, and the breakage might have occured
> > anywhere during the conversion project or afterwards or it might not even
> > relate to the convertion.
> >
> > Given exactly zero information provided on how did you do the conversion,
> > on which OS the convertion was done, and with which tooling, it seems
> > barely
> > possible to make further guesses.
>
> I migrated a project from CVS to GIthub. As process of this migration
> there has been few jars migrated as well. The CVS server is Linux and from
> there to GITHUB. From GitHub i am cloning the content to local in windows
> machine .
> 
> Now when opening the cloned GH repo in eclipse and trying to build it's
> complaining on the Jars as not able to read or invalid zip file.
> 
> But if I extract the same jars from CVS to local machine ( windows) no
> error is shown . But the migrated Jars to GITHUB complains .

You're still refusing to tell exactly how that conversion/migration was done,
but that is the single most important piece of information in this question.

> Wanted to know what can be done to overcome this problem . Are there any
> settings like filemode or autocrlf be set before migration to GH
[...]

Yes, these are the culprits I were thinking of, but then again - without
knowng what exactly that "process of migration" is, it's impossible to make
any sensible guesses.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/20230126184924.avsor5euwyeaako3%40carbon.

Reply via email to