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

Issue: repack semi-frequently fails on Windows (msysgit) - suspecting file descriptor issues

From
AMAndreas Mohr <andi@lisas.de>
Date
Apr 16, 2015, 10:03 UTC
Message-ID
<20150416100359.GA19951@rhlx01.hs-esslingen.de>
Hi all,

over the years I've had the same phenomenon with various versions of msysgit (now at 1.9.5.msysgit.0, on Windows 7 64bit), so I'm now sufficiently confident of it being a long-standing, longer-term issue and thus I'm reporting it now.

Since I'm doing development in a sufficiently rebase-heavy manner, I seem to aggregate a lot of objects. Thus, when fetching content I'm sufficiently frequently greeted with a git gc run. This, however, does not work fully reliably:

    Auto packing the repository for optimum performance. You may also
    run "git gc" manually. See "git help gc" for more information.
    Counting objects: 206527, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (27430/27430), done.
    Writing objects: 100% (206527/206527), done.
    Total 206527 (delta 178632), reused 206527 (delta 178632)
    Unlink of file '.git/objects/pack/pack-ab1712db0a94b5c55538d3b4cb3660cedc264c3c.pack' failed. Should I try again? (y/n) n
    Unlink of file '.git/objects/pack/pack-ab1712db0a94b5c55538d3b4cb3660cedc264c3c.idx' failed. Should I try again? (y/n) n
    Checking connectivity: 206527, done.

A workable workaround for this recurring issue (such a fetch will fail repeatedly, thereby hampering my ability to update properly) is to manually do a "git gc --auto" prior to the fetch (which will then succeed).

-- 
¿umop apisdn upside down?
(by daniweb.com user Bench)
Next: Thomas Braun
Message 1 of 13 in “Issue: repack semi-frequently fails on Windows (msysgit) - suspecting file descriptor issues”
  1. Andreas MohrApr 16, 2015
  2. Thomas BraunApr 16, 2015
  3. Johannes SchindelinApr 16, 2015
  4. Andreas MohrApr 16, 2015
  5. Andreas MohrApr 16, 2015
  6. Andreas MohrApr 16, 2015
  7. Johannes SchindelinApr 16, 2015
  8. Andreas MohrApr 16, 2015
  9. Jeff KingApr 16, 2015
  10. Johannes SchindelinApr 16, 2015
  11. David MillerApr 16, 2015
  12. Andreas MohrApr 16, 2015
  13. rupert thurnerApr 23, 2015

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.