diff --git a/index-pack.c b/index-pack.c
index aaba9443ccbab1315e67c0e6bedaa82afe5464fc..5ac91baf98615d7e494550155c1c4d7665ed2dcd 100644 (file)
--- a/index-pack.c
+++ b/index-pack.c
if (!from_stdin) {
close(input_fd);
} else {
if (!from_stdin) {
close(input_fd);
} else {
+ fsync_or_die(output_fd, curr_pack_name);
err = close(output_fd);
if (err)
die("error while closing pack file: %s", strerror(errno));
err = close(output_fd);
if (err)
die("error while closing pack file: %s", strerror(errno));