Lock repo when deploying