Rewrite the local repo deployment case