Code

write_ref_sha1(): only invalidate the loose ref cache