X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=pack-write.c;h=f52cabe83829289dee7e44673b59a02db38918a5;hb=c30e699fc509f43f459c17d3148e7d866fb9157a;hp=c66c8af725f6d37b4edaeab75eebac7a387f4922;hpb=31a3c6bb45aa61e45f1663871620eaf742f0abbb;p=git.git diff --git a/pack-write.c b/pack-write.c index c66c8af72..f52cabe83 100644 --- a/pack-write.c +++ b/pack-write.c @@ -139,7 +139,7 @@ char *write_idx_file(char *index_name, struct pack_idx_entry **objects, } sha1write(f, sha1, 20); - sha1close(f, NULL, 1); + sha1close(f, NULL, CSUM_FSYNC); SHA1_Final(sha1, &ctx); return index_name; }