Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Update sample pre-commit hook to use "diff --check"
[gitweb.git]
/
pack-write.c
diff --git
a/pack-write.c
b/pack-write.c
index c66c8af725f6d37b4edaeab75eebac7a387f4922..f52cabe83829289dee7e44673b59a02db38918a5 100644
(file)
--- 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;
}