// re-open parent dir to avoid problems with zip-meta-dirs
dir = new VltDirectory(ctx, localDir);
Update up = new Update(localDir, null, false);
up.setOnlyControlled(true);
up.setForce(force);
dir.applyWithRemote(up, Collections.<String>emptyList(), false);
ctx.printMessage("Checkout done.");
} catch (IOException e) {
throw new VltException(localDir.getPath(), "Error during checkout", e);
} catch (RepositoryException e) {
throw new VltException(remoteDir, "Error during checkout", e);