summaryrefslogtreecommitdiff
path: root/git-cvsimport.perl
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-06-10 18:47:18 -0700
committerJunio C Hamano <gitster@pobox.com>2008-06-10 22:23:18 -0700
commite9039dd35194b7c1cf4ecd479928638166b8458f (patch)
tree546d1c2b4abc77de3b97eb0339afc33ea074ff6a /git-cvsimport.perl
parentcdf222f5f0d6f2f22df12e83c4a1f9aae35f3084 (diff)
downloadgit-e9039dd35194b7c1cf4ecd479928638166b8458f.tar.gz
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 'git-cvsimport.perl')
0 files changed, 0 insertions, 0 deletions