How do I check jgit setCloneAllBranches() clones all branches to my local
I am trying to clone a git repository into my local using the following code .
repo = Git.cloneRepository().setCloneAllBranches(true).setCredentialsProvider(new UsernamePasswordCredentialsProvider(userName, pwd)).setURI(uri).setDirectory(new File(toDir)).call()