for-each-ref: cope with tags with incomplete lines