summaryrefslogtreecommitdiff
path: root/builtin-commit-tree.c
diff options
context:
space:
mode:
authorLibravatar Nicolas Pitre <nico@cam.org>2008-12-09 14:26:52 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-12-10 17:56:05 -0800
commitc74faea19e39ca933492f697596310397175c329 (patch)
tree8d98539f02bf7bcc82c43f466feae01dbf0de9bc /builtin-commit-tree.c
parentwork around Python warnings from AsciiDoc (diff)
downloadtgif-c74faea19e39ca933492f697596310397175c329.tar.xz
make sure packs to be replaced are closed beforehand
Especially on Windows where an opened file cannot be replaced, make sure pack-objects always close packs it is about to replace. Even on non Windows systems, this could save potential bad results if ever objects were to be read from the new pack file using offset from the old index. This should fix t5303 on Windows. Signed-off-by: Nicolas Pitre <nico@cam.org> Tested-by: Johannes Sixt <j6t@kdbg.org> (MinGW) Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-commit-tree.c')
0 files changed, 0 insertions, 0 deletions