templates / branches--on commit write_ref_sha1(): only invalidate the loose ref cache (8bf90dc)
   1: this is just to ensure the directory exists.