Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
apply: use the right attribute for paths in non-Git patches
[gitweb.git]
/
pack-write.c
diff --git
a/pack-write.c
b/pack-write.c
index ddc174e1adb9e1545b2815d8a1990e43f6fa2bfb..605d01b25cbd9d796810f8aa810894a2c198da28 100644
(file)
--- a/
pack-write.c
+++ b/
pack-write.c
@@
-183,8
+183,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);
}