  We use holomorphic factorization to find the partition functions of an
abelian two-form chiral gauge-field on a flat six-torus. We prove that exactly
one of these partition functions is modular invariant. It turns out to be the
one that previously has been found in a hamiltonian formulation.
