{"thread":{"id":"31290","subject":"BUG Report. Why GIT commit need 30GB of memory for a commit?","startedAt":"2012-08-20T05:12:33Z","lastAt":"2012-08-20T05:48:47Z","messageCount":2,"participants":["Jose Nobile","Robin Rosenberg"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"197319","messageId":"CAJ69RUQ++RpfgDmPh2k6n1e61xX9OZ_tvG5K7Q4CXvh7i2cj6w@mail.gmail.com","threadId":"31290","inReplyTo":null,"subject":"BUG Report. Why GIT commit need 30GB of memory for a commit?","fromName":"Jose Nobile","fromEmail":"jose.nobile@gmail.com","sentAt":"2012-08-20T05:12:33Z","receivedAt":"2012-08-20T05:12:33Z","isPatch":false,"sender":{"key":"jose.nobile@gmail.com","avatar":null},"body":"I have a big repository, around 80GB\ngit --version\n#git version 1.7.12\ngit init .\n#Initialized empty Git repository in /reponame/.git/\ngit add -A .\n\ngit commmit -m \"Backup 2012-08-19 03:43:44\"\n#fatal: Out of memory, malloc failed (tried to allocate 32220431361 bytes)\n#[master (root-commit) 8053f0d] Backup 2012-08-19 03:43:44\n\n Why GIT need 30GB of memory for a commit?\n\nThis is not in accordance with the first paragraph of the homepage of\nmain page of GIT:\n\n\nGit is a free and open source distributed version control system\ndesigned to handle everything from small to very large projects with\nspeed and efficiency.\n\n\nGreetings,\nJosé Nobile\n"},{"id":"197321","messageId":"5031CFBF.903@dewire.com","threadId":"31290","inReplyTo":"CAJ69RUQ++RpfgDmPh2k6n1e61xX9OZ_tvG5K7Q4CXvh7i2cj6w@mail.gmail.com","subject":"Re: BUG Report. Why GIT commit need 30GB of memory for a commit?","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg@dewire.com","sentAt":"2012-08-20T05:48:47Z","receivedAt":"2012-08-20T05:48:47Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"Jose Nobile skrev 2012-08-20 07.12:\n> I have a big repository, around 80GB\n> git --version\n> #git version 1.7.12\n> git init .\n> #Initialized empty Git repository in /reponame/.git/\n> git add -A .\n>\n> git commmit -m \"Backup 2012-08-19 03:43:44\"\n> #fatal: Out of memory, malloc failed (tried to allocate 32220431361 bytes)\n> #[master (root-commit) 8053f0d] Backup 2012-08-19 03:43:44\n>\n>   Why GIT need 30GB of memory for a commit?\n\nIt may be trying to compute a commit summary. Add -q to avoid the work.\n\n-- robin\n"}]}