Skip to content

Commit 13ed4f1

Browse files
committed
receive-pack: release pack files before garbage-collecting
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 <[email protected]> Reviewed-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d1ccdf1 commit 13ed4f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/receive-pack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,6 +1796,7 @@ int cmd_receive_pack(int argc, const char **argv, const char *prefix)
17961796
"gc", "--auto", "--quiet", NULL,
17971797
};
17981798
int opt = RUN_GIT_CMD | RUN_COMMAND_STDOUT_TO_STDERR;
1799+
close_all_packs();
17991800
run_command_v_opt(argv_gc_auto, opt);
18001801
}
18011802
if (auto_update_server_info)

0 commit comments

Comments
 (0)