I'd like to checkout a specific revision of a git repository with Java. I've found JGit to do thos task. A clone of the entire repo is already possible:
Git.cloneRepository();
However, I need a specific revision (not HEAD). How could this be achieved with JGit?