clone with jgit from gitlab

852 views Asked by At

I`m trying to use jgit library to work with git from my java code.
I can clone project with https protocol

Git.cloneRepository().setURI("https://github.com/centic9/jgit-cookbook.git").setDirectory("jgit").call()

but we use gitlab, which allows only git protocol, and I get error for command like

Git.cloneRepository().setURI("git://github.com/centic9/jgit-cookbook").setDirectory("jgit").call()
0

There are 0 answers