揮発性のメモ2

http://d.hatena.ne.jp/iww/

error: git upload-pack: git-pack-objects died with error.

$ git clone jikken@testserver:/var/lib/git/TESTPROJECT.git
Cloning into TESTPROJECT...
remote: Counting objects: 1365, done.
remote: Compressing objects:  78% (623/790)
$ git clone jikken@testserver:/var/lib/git/TESTPROJECT.git
Cloning into TESTPROJECT...
remote: Counting objects: 1365, done.
error: pack-objects died of signal 925/790)
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed

エラーになる

git config --global pack.window 0

http://linuxhospital.wordpress.com/2013/10/14/git-clone-error-remote-fatal-out-of-memory-malloc-failed-error-git-upload-pack-git-pack-objects-died-with-error/

[pack]
        window = 0

⇒ 全体的に動作が遅くなっただけで、同じところでエラーになる

--depth=1

performance - Is it safe to shallow clone with --depth 1, create commits, and pull updates again? - Stack Overflow

$ git clone --depth 1 jikken@testserver:/var/lib/git/TESTPROJECT.git
Cloning into TESTPROJECT...
remote: Counting objects: 582, done.
remote: warning: suboptimal pack - out of memory
remote: Compressing objects: 100% (370/370), done.
Receiving objects: 100% (582/582), 183.53 MiB | 5.61 MiB/s, done.
remote: Total 582 (delta 220), reused 466 (delta 210)
Resolving deltas: 100% (220/220), done.

[pack] window=0 の設定しっぱなしだとエラーが出る
設定を外せばエラーなく正常に終了する