Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
do not pretend sha1write returns errors
[gitweb.git]
/
pack-write.c
diff --git
a/pack-write.c
b/pack-write.c
index ca9e63be18f9333bf0f603ddb9ddd923588be0aa..676ed4ce9ad9f4fdfeaaaac13f91f8d0e8a95dae 100644
(file)
--- a/
pack-write.c
+++ b/
pack-write.c
@@
-189,8
+189,7
@@
off_t write_pack_header(struct sha1file *f, uint32_t nr_entries)
hdr.hdr_signature = htonl(PACK_SIGNATURE);
hdr.hdr_version = htonl(PACK_VERSION);
hdr.hdr_entries = htonl(nr_entries);
- if (sha1write(f, &hdr, sizeof(hdr)))
- return 0;
+ sha1write(f, &hdr, sizeof(hdr));
return sizeof(hdr);
}