alloc: add repository argument to alloc_tag_node