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

gc does not clean up after itself when not enough disk space

From
Jjones.noamle <lenoam@gmail.com>
Date
Feb 26, 2013, 15:38 UTC
Message-ID
<512CD703.4080302@gmail.com>
In-Reply-To
<512CD689.4050705@gmail.com>

When git gc fails on no more disk space, it leaves tmp_pack files lying around that consume whatever space was available (and fill up the disk to 100%). Shouldn't git be deleting these files?

Running git 1.7.9 on cygwin: # git --version git version 1.7.9 # uname -a CYGWIN_NT-6.1-WOW64 ---- 1.7.17(0.262/5/3) 2012-10-19 14:39 i686 Cygwin

Example failure output:

# git gc Counting objects: 44626, done. Delta compression using up to 8 threads. Compressing objects: 100% (7756/7756), done. fatal: sha1 file '.git/objects/pack/tmp_pack_uJ0E5b' write error: No space left on device error: failed to run repack

Thanks! Noam

Next: Junio C Hamano
Message 1 of 5 in “gc does not clean up after itself when not enough disk space”
  1. jones.noamleFeb 26, 2013
  2. Junio C HamanoFeb 26, 2013
  3. Jens LehmannFeb 26, 2013
  4. Sitaram ChamartyFeb 27, 2013
  5. Jeff KingFeb 27, 2013

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.