Checkout the proper Git tag when --*-tag={tag} is passed