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

[PATCH 0/2] pull: release handles to pack files before potentially gc'ing

From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
Date
Sep 8, 2021, 08:29 UTC
Message-ID
<pull.1032.git.1631089771.gitgitgadget@gmail.com>

It was reported in Git for Windows [https://github.com/git-for-windows/git/issues/3336] that there are still some code paths where .pack files are still open when a garbage collection is triggered. This time, the affected command is git pull.

The fix is relatively trivial but uncovers a bug in the commit-graph code, which we have to fix first.

Johannes Schindelin (2):
  commit-graph: when closing the graph, also release the slab
  pull: release packs before fetching
 builtin/pull.c | 2 ++
 commit-graph.c | 1 +
 2 files changed, 3 insertions(+)
base-commit: 225bc32a989d7a22fa6addafd4ce7dcd04675dbf
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1032%2Fdscho%2Frelease-packs-before-fetching-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1032/dscho/release-packs-before-fetching-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1032
-- 
gitgitgadget
Next: Johannes Schindelin via GitGitGadget
Message 1 of 5 in “pull: release handles to pack files before potentially gc'ing”
  1. 0/2 pull: release handles to pack files before potentially gc'ingJohannes Schindelin via GitGitGadget, Sep 8, 2021
  2. 1/2 commit-graph: when closing the graph, also release the slabJohannes Schindelin via GitGitGadget, Sep 8, 2021
  3. 2/2 pull: release packs before fetchingJohannes Schindelin via GitGitGadget, Sep 8, 2021
  4. Junio C HamanoSep 8, 2021
  5. Johannes SchindelinSep 9, 2021

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.