summaryrefslogtreecommitdiff
path: root/builtin-fetch-pack.c
diff options
context:
space:
mode:
authorLibravatar Linus Torvalds <torvalds@linux-foundation.org>2008-06-10 18:47:18 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-06-10 22:23:18 -0700
commite9039dd35194b7c1cf4ecd479928638166b8458f (patch)
tree546d1c2b4abc77de3b97eb0339afc33ea074ff6a /builtin-fetch-pack.c
parentDocumentation/git-cat-file.txt: add missing line break (diff)
downloadtgif-e9039dd35194b7c1cf4ecd479928638166b8458f.tar.xz
Consolidate SHA1 object file close
This consolidates the common operations for closing the new temporary file that we have written, before we move it into place with the final name. There's some common code there (make it read-only and check for errors on close), but more importantly, this also gives a single place to add an fsync_or_die() call if we want to add a safe mode. This was triggered due to Denis Bueno apparently twice being able to corrupt his git repository on OS X due to an unlucky combination of kernel crashes and a not-very-robust filesystem. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-fetch-pack.c')
0 files changed, 0 insertions, 0 deletions