author | Linus Torvalds <torvalds@linux-foundation.org> | |
Wed, 27 Aug 2008 19:48:00 +0000 (12:48 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 27 Aug 2008 20:33:56 +0000 (13:33 -0700) | ||
commit | 0c68d386da710940a22712b8f3539f7e73ba1b8f | |
tree | 212494452f9b31370c983bec9ab1286b54e005ae | tree | snapshot |
parent | d0b92a3f6e4d98a38a86cbd86f0e39eea9005958 | commit | diff |
index-pack: be careful after fixing up the header/footer
The index-pack command, when processing a thin pack, fixed up the pack
after-the-fact. It forgets to fsync the result, because it only did that
in one path rather in all cases of fixup.
This moves the fsync_or_die() to the fix-up routine itself, rather than
doing it in one of the callers, so that all cases are covered.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The index-pack command, when processing a thin pack, fixed up the pack
after-the-fact. It forgets to fsync the result, because it only did that
in one path rather in all cases of fixup.
This moves the fsync_or_die() to the fix-up routine itself, rather than
doing it in one of the callers, so that all cases are covered.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c | diff | blob | history | |
pack-write.c | diff | blob | history |