X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=index-pack.c;h=5ac91baf98615d7e494550155c1c4d7665ed2dcd;hb=4ace4fc584f48d5b8df957c4462cf5c7c58ab100;hp=aaba9443ccbab1315e67c0e6bedaa82afe5464fc;hpb=b71ce7f3f13ebd0e212bdda82b012ee36df4f63f;p=git.git diff --git a/index-pack.c b/index-pack.c index aaba9443c..5ac91baf9 100644 --- a/index-pack.c +++ b/index-pack.c @@ -694,6 +694,7 @@ static void final(const char *final_pack_name, const char *curr_pack_name, 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));