Check out the correct branch from repositoryUrl.