I am stuck with a seemingly simple task, “How to clone a git repo using RepositoryCloneLinksRequest.Builder / GitCloneBuilder” through my plugin.
I am able to get the link of the URL that I want to clone as below
RepositoryCloneLinksRequest repoclonelinkreq = new RepositoryCloneLinksRequest.Builder().repository(repo).protocol("http").user(null).build();
How do I proceed next to clone the repo to some /tmp directory on my sever ?
I also tried using the below
Are there some useful links of a sample/example code that I can see to figure out how to achieve this?