title: Turn SSL verification off for JGit clone command
body: <p>I am trying to a clone of a Git Repository via the <code>CloneCommand</code>.
  With this piece of code</p>
  
  <pre class="lang-java prettyprint-override"><code>`Git.cloneRepository().setDirectory(new File(path)).setURI(url).call();`
  </code></pre>
  
  <p>The remote repository is on a GitBlit Instance which uses self signed certificates.
  Because of these self signed certificates I get the below exception when the Fetch Part of the Clone is executing:</p>
  
  <pre><code>Caused by: java.security.cert.CertificateException: No name matching &lt;hostName&gt; found
      at sun.security.util.HostnameChecker.matchDNS(HostnameChecker.java:221)
      at sun.security.util.HostnameChecker.match(HostnameChecker.java:95)
  </code></pre>
  
  <p>While I could create a new <code>TrustManager</code>, register a dummy <code>HostnameVerifier</code> and create and init a <code>SSLContext</code> that uses this dummy <code>TrustManager</code>.
  And after the clone is done revert all of this.</p>
  
  <p>However this would mean that any other SSL connection that is initiated during the same time would expose them to unsecured connections.</p>
  
  <p>On a already cloned repo you can set the http.sslVerify to false and JGit works perfectly fine. </p>
  
  <p>Is there a cleaner way in which I could tell JGit to set this http.sslVerify to false for Clone action, like I can do for a already cloned repo.</p>