Lineal gravity with dynamical torsion