if (releaseConvention.isEnsureWorkspaceClean()) {
final Repository repo = repository(getProject());
final Git git = new Git(repo);
if (git.status().call().hasUncommittedChanges()) {
throw new ReleaseException("The working tree has uncommitted changes");
}
}
else {
log.info("Skipping check for clean workspace");
}