title: Why do I get a 'Password required' pop-up when I use JGit in an eclipse RCP?
body: <p>I am using Gitlab as a repository in my RCP app. <code>gitlab4j</code> is used to navigate groups and projects and <code>jgit</code> is used to clone and fetch.</p>
  <p>I set up tokens for accessing the Gitlab API and this works fine.</p>
  <p>When I come to clone a repository (using <code>jgit</code>), I get a popup which wants me to enter user and password for &quot;GitLab&quot;. I can just press <code>Cancel</code> and the clone action proceeds and completes successfully.</p>
  <p>I have tried the same code outside of eclipse and I have no problem at this point.</p>
  <p>I think that it has something to do with the eclipse proxy. How can I programmatically disable the proxy or configure it to ignore my Gitlab URL?</p>
  <pre><code>Git git = Git
              .cloneRepository()
              .setCredentialsProvider(new UsernamePasswordCredentialsProvider(&quot;PRIVATE-TOKEN&quot;, token))
              .setDirectory(dir)
              .setURI(&quot;https://my-gitlab-repo&quot;)
              .setNoCheckout(true)
              .setProgressMonitor(pm)
              .call();
  
  git.checkout()
      .setCreateBranch(true)
      .setName(DEFAULT_BRANCH)
      .setStartPoint(&quot;refs/tags/&quot; + tag.getName())
      .call()
  </code></pre>
  <p><em>Further info</em></p>
  <p>I have tried setting <code>core.net</code> preferences in <code>plugin_customization.ini</code> to define a proxy bybass but this does not help.</p>
  <pre><code>org.eclipse.core.net/nonProxiedHosts=git1.acme.com|localhost|127.0.0.1
  org.eclipse.core.net/proxiesEnabled=true
  org.eclipse.core.net/systemProxiesEnabled=false
  </code></pre>