summaryrefslogtreecommitdiff
path: root/pack-write.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-08-27 16:23:54 -0700
committerJunio C Hamano <gitster@pobox.com>2008-08-27 16:23:54 -0700
commitbb34ca5c5f7df33ea84a5b71621dbdeac1da39c1 (patch)
treeb098a3292b4c32dae69cf6385d7faa0a33d47d14 /pack-write.c
parentcdc7e388da47b66fe11c92ed7698ec233ce70635 (diff)
parentc67b1fa349cc7b4341b32b9ef1c58a3821ce0830 (diff)
downloadgit-bb34ca5c5f7df33ea84a5b71621dbdeac1da39c1.tar.gz
Merge branch 'maint'
* maint: ctype.c: protect tiny C preprocessor constants index-pack: be careful after fixing up the header/footer
Diffstat (limited to 'pack-write.c')
-rw-r--r--pack-write.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pack-write.c b/pack-write.c
index a8f0269936..ddcfd37af2 100644
--- a/pack-write.c
+++ b/pack-write.c
@@ -179,6 +179,7 @@ void fixup_pack_header_footer(int pack_fd,
SHA1_Final(pack_file_sha1, &c);
write_or_die(pack_fd, pack_file_sha1, 20);
+ fsync_or_die(pack_fd, pack_name);
}
char *index_pack_lockfile(int ip_out)