Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
describe: Make --tags and --all match lightweight tags more often
[gitweb.git]
/
index-pack.c
diff --git
a/index-pack.c
b/index-pack.c
index 73860bf3da062d283c266f6b83fdf3f613af26e7..d3a4d31b4e92d69eb32d1a18ebb7be1f7470d1d1 100644
(file)
--- a/
index-pack.c
+++ b/
index-pack.c
@@
-707,6
+707,7
@@
static struct object_entry *append_obj_to_pack(struct sha1file *f,
obj[1].idx.offset = obj[0].idx.offset + n;
obj[1].idx.offset += write_compressed(f, buf, size);
obj[0].idx.crc32 = crc32_end(f);
+ sha1flush(f);
hashcpy(obj->idx.sha1, sha1);
return obj;
}