I am having trouble cloning the FFmpeg repo. Using a binary search algorithm, I think I narrowed the issue around a particular depth. Notice the inconsistent results
$ git clone --depth 916 git://source.ffmpeg.org/ffmpeg Cloning into 'ffmpeg'... remote: Counting objects: 16737, done. remote: Compressing objects: 100% (8454/8454), done. remote: Total 16737 (delta 11293), reused 11481 (delta 8105) Receiving objects: 100% (16737/16737), 11.32 MiB | 398.00 KiB/s, done. Resolving deltas: 100% (11293/11293), done.
$ git clone --depth 916 git://source.ffmpeg.org/ffmpeg Cloning into 'ffmpeg'... remote: Counting objects: 16737, done. remote: Compressing objects: 100% (8454/8454), done. remote: Total 16737 (delta 11291), reused 11482 (delta 8105) Receiving objects: 100% (16737/16737), 11.32 MiB | 390.00 KiB/s, done. fatal: pack is corrupted (SHA1 mismatch) fatal: index-pack failed
$ git clone --depth 916 git://source.ffmpeg.org/ffmpeg Cloning into 'ffmpeg'... remote: Counting objects: 16737, done. remote: Compressing objects: 100% (8454/8454), done. remote: Total 16737 (delta 11290), reused 11481 (delta 8105) Receiving objects: 100% (16737/16737), 11.32 MiB | 401.00 KiB/s, done. Resolving deltas: 100% (11290/11290), done. fatal: missing blob object 'e893922133e1837d51077b07b6eb2ef3d5f269ec' fatal: remote did not send all necessary objects
$ git clone --depth 916 git://source.ffmpeg.org/ffmpeg Cloning into 'ffmpeg'... remote: Counting objects: 16737, done. remote: Compressing objects: 100% (8454/8454), done. remote: Total 16737 (delta 11292), reused 11481 (delta 8105) Receiving objects: 100% (16737/16737), 11.32 MiB | 394.00 KiB/s, done. Resolving deltas: 100% (11292/11292), done. Checking out files: 100% (3637/3637), done.
How do I fix this issue so that I can clone at this and full depth?
$ git --version git version 1.8.3.1
git clone git://source.ffmpeg.org/ffmpeg
orgit clone --depth 916 git://source.ffmpeg.org/ffmpeg
. Are you still having the trouble? What version of git? What OS? – Christophergit clone -v
and maybe we'll get more information. – Peter Lundgren