fix transform failure on delete

all the git commands treat deletions differently from other changes.
more fixups will probably be required elsewhere.