Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] Https Git URL Being Transformed To SSH URL

I am trying to run the following code

setDirectory(basedir).call();

When I run this code in my app locally on OS X it works fine.  When I run the same code on CircleCI (a cloud CI server) it looks like the protocol is changed from https to ssh and an invalid URL is created.  The following exception is thrown 

Caused by: org.eclipse.jgit.errors.NotSupportedException: URI not supported: ssh:///git@xxxxxxxxxx:/spring-cloud-samples/config-repo

Notice the addition of the extra `/` and the `:` where the username should be included.

I am assuming this is due to the environment in CircleCI but I could not find any documentation for JGit as to when this URL transformation might occur.  Can anyone provide any insight as to which situations would cause this?

-Ryan

Back to the top