tg import: Require clean working tree and index