Stop when there is nothing to commit