5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gitでwarning: suboptimal pack - out of memory Compressing objectsと出るときの対処法

Posted at

Subversionのリポジトリをgitにconvertしようとしても
$ git svn clone --trunk= --branches=branches --prefix=svn/ $SVN_REPO_URL
リポジトリが巨大過ぎるとうまくいかない。

warning: suboptimal pack - out of memory
Compressing objects: 100% (xxx/xxx), done.
fatal: Out of memory, malloc failed (tried to allocate xxxxxxxx bytes)
error: failed to run repack

と出て失敗する。

対処法としては、packの単位とwindow memory(何者か不明)を小さくするとうまくいく。

$ git repack -a -d --window-memory 10m --max-pack-size 20m
とすれば上手く行った。

参考
http://stackoverflow.com/questions/9040083/error-when-pulling-warning-suboptimal-pack-out-of-memory

5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?