我無法克隆FFmpeg回購。使用 binary search algorithm, 我想我圍繞一個特定的深度縮小了這個問題。注意不一致的結果在很大的深度克隆失敗
$ 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.
我該如何解決這個問題,這樣我可以在此和全深度克隆?
$ git --version git version 1.8.3.1
我沒有任何'git clone git:// source.ffmpeg.org/ffmpeg'或'git clone --depth 916 git://source.ffmpeg問題。組織/ ffmpeg'。你還有麻煩嗎?什麼版本的git?什麼OS? – Christopher
無論您或服務器的硬件失敗?第二和第三看起來像腐敗。鑑於不同的失敗,它看起來並不像提交的數量是關鍵。試試'git clone -v',也許我們會得到更多的信息。 –