git clone fails on large repos when using cygcrypto-1.0.0.dll, works with 0.9.8

Balaji Venkataraman balaji.s.venkataraman@gmail.com
Tue Jan 14 06:28:00 GMT 2014


On Fri, Jan 10, 2014 at 9:27 AM, Chris O'Bryan wrote:
>
> I've been having issues cloning large repos with git under Cygwin, but
> only when I compiled git myself. The version of Git that Cygwin's
> setup.exe downloads works fine, while mine would intermittently fail
> with messages like this:
>
> Cloning into 'testrepo'...
> remote: Counting objects: 41107, done
> remote: Finding sources: 100% (15143/15143)
> remote: Total 149668 (delta 9296), reused 148822 (delta 9296)
> Receiving objects: 100% (149668/149668), 613.20 MiB | 6.64 MiB/s, done.
> fatal: pack is corrupted (SHA1 mismatch)
> fatal: index-pack failed

I have been seeing similar problems with a few repos at work for quite
some time (at least a few months) and never quite understood why
cloning would fail mysteriously sometimes with a variety of errors -
including 'object blah does not exist' etc. This when using the the
latest git form Cygwin ports on Cygwin 32. Also this only happens w/
large repos and since I do not clone often, the problem was not a real
annoyance.

I can confirm the problem definitely exists and I was able to
reproduce it on the first try. See below. Nice sleuthing work to track
down the potential culprit. Would be great if this is fixed. Thanks.

-- output --
x86$ git clone --depth 916 git://source.ffmpeg.org/ffmpeg
Cloning into 'ffmpeg'...
remote: Counting objects: 17048, done.
remote: Compressing objects: 100% (8404/8404), done.
remote: Total 17048 (delta 11235), reused 12401 (delta 8470)
Receiving objects: 100% (17048/17048), 13.40 MiB | 132.00 KiB/s, done.

fatal: pack is corrupted (SHA1 mismatch)
fatal: --shallow-file failed

x86$ git --version
git version 1.8.3.4

[run setup.exe downgrade git]

x86$ git --version
git version 1.7.9

x86$ git clone --depth 916 git://source.ffmpeg.org/ffmpeg
Cloning into 'ffmpeg'...
remote: Counting objects: 169826, done.
remote: Compressing objects: 100% (45431/45431), done.
remote: Total 169826 (delta 136659), reused 156169 (delta 123946)
Receiving objects: 100% (169826/169826), 46.02 MiB | 138 KiB/s, done.
Resolving deltas: 100% (136659/136659), done.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list