Fix messed up QA environment when the repository is tagged