If given, checkout the revision to build as HEAD on this branch. Please note that this has not been tested with submodules.