rename_ref(): inline calls to write_ref_sha1() from this function