X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=fast-import.c;h=e72b28679410155cb43968d315f02588e89fd5f1;hb=e4bffb5a1d9ab3c9c0ef0541a395d47516480d97;hp=93119bbd9484504d19f069a5c0038fb1e2f40a26;hpb=9bd81e4249a419f9cde8fd68e033e263533f4914;p=git.git diff --git a/fast-import.c b/fast-import.c index 93119bbd9..e72b28679 100644 --- a/fast-import.c +++ b/fast-import.c @@ -890,7 +890,7 @@ static char *create_index(void) SHA1_Update(&ctx, (*c)->sha1, 20); } sha1write(f, pack_data->sha1, sizeof(pack_data->sha1)); - sha1close(f, NULL, 1); + sha1close(f, NULL, CSUM_FSYNC); free(idx); SHA1_Final(pack_data->sha1, &ctx); return tmpfile;