git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git gc leaved my disk 100% full

From
JDJean Delvare <jdelvare@suse.de>
Date
Jan 19, 2016, 16:09 UTC
Message-ID
<20160119170957.6e69ebb8@endymion.delvare>
Hi git developers,

Earlier today my desktop environment warned me that my /home was almost full. I thought that running "git gc" on my git trees would maybe save some disk space.

Unfortunately the opposite happened. "git gc" failed on me with:

fatal: sha1 file '.git/objects/pack/tmp_idx_XW7opV' write error: No space left on device error: failed to run repack

and at that point the partition was 100% full. My git repository went from 2.2 GB to 3.3 GB in the process, this is why.

While I understand the value of preserving temporary files for debugging purpose, I don't think it makes sense in the context of the "gc" command which precisely should get rid of such temporary files.

So please consider fixing "gc" so that it cleans up any temporary file in case of failure.

Thanks,
-- 
Jean Delvare
SUSE L3 Support
Next: Jeff King
Message 1 of 2 in “git gc leaved my disk 100% full”
  1. Jean DelvareJan 19, 2016
  2. Jeff KingFeb 4, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.