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

[PATCH 3/4] merge: release pack files before garbage-collecting

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 13, 2016, 17:20 UTC
Message-ID
<83f7c1a7ad4f2d63733b61115b4a1dd88468e96f.1452705584.git.johannes.schindelin@gmx.de>
In-Reply-To
<cover.1452705584.git.johannes.schindelin@gmx.de>

Before auto-gc'ing, we need to make sure that the pack files are released in case they need to be repacked and garbage-collected.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 builtin/merge.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/builtin/merge.c b/builtin/merge.c
index 15bf95b..b98a348 100644
--- a/builtin/merge.c
+++ b/builtin/merge.c
@@ -404,6 +404,7 @@ static void finish(struct commit *head_commit,
 			 * We ignore errors in 'gc --auto', since the
 			 * user should see them.
 			 */
+			close_all_packs();
 			run_command_v_opt(argv_gc_auto, RUN_GIT_CMD);
 		}
 	}
-- 
2.6.3.windows.1.300.g1c25e49
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 4 of 7 in “Always release pack files before calling gc --auto”
  1. 0/4 Always release pack files before calling gc --autoJohannes Schindelin, Jan 13, 2016
  2. 1/4 fetch: release pack files before garbage-collectingJohannes Schindelin, Jan 13, 2016
  3. 2/4 am: release pack files before garbage-collectingJohannes Schindelin, Jan 13, 2016
  4. 3/4 merge: release pack files before garbage-collectingJohannes Schindelin, Jan 13, 2016
  5. 4/4 receive-pack: release pack files before garbage-collectingJohannes Schindelin, Jan 13, 2016
  6. Jeff KingJan 13, 2016
  7. Johannes SchindelinJan 13, 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.