Eclipse Error : open git-upload-pack and not authorized (EGit)

Eclipse Error : open git-upload-pack and not authorized (EGit)

我经常在这里看到这个问题,但我的问题似乎更复杂。我无法同时克隆和使用市场。我必须在本机设置和手动设置之间切换。 这是我的代理设置之间的差异:

手动:

  1. 克隆无效
  2. 内部 Internet 浏览器正在运行
  3. 市场正常运作

当我将其添加到 eclipse.ini

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4

就是这个例外:

  org.eclipse.jgit.api.errors.TransportException: https://XXX.XXX.XXX/scm/Test/testprof.git: cannot open git-upload-pack
            at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:221)
            at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:159)
            at org.eclipse.egit.core.op.ListRemoteOperation.run(ListRemoteOperation.java:100)
            at org.eclipse.egit.ui.internal.clone.SourceBranchPage.run(SourceBranchPage.java:341)
            at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

没有它:

java.lang.Exception: org.eclipse.jgit.api.errors.TransportException: https://XXX.XX.XX/scm/XXX/XXX.git: not authorized
  at org.eclipse.oomph.setup.git.impl.GitCloneTaskImpl.perform(GitCloneTaskImpl.java:882)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3305)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.access(SetupTaskPerformer.java:3248)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil.run(SetupTaskPerformer.java:4469)
  at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
  at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267)

母语:

  1. 正在克隆
  2. 内部浏览器正在运行
  3. 市场不工作

当我将其添加到 eclipse.ini

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4

发生这种情况:

org.eclipse.core.runtime.CoreException: Cannot install remote marketplace locations: Connection failed

    This is most often caused by a problem with your internet connection. Please check your internet connection and retry.

        at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand.execute(MarketplaceWizardCommand.java:106)

        at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)

        at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

    and without it:

        Failed to stream using org.eclipse.epp.internal.mpc.core.transport.httpclient.HttpClientTransport@1e8c67f7 - falling back to org.eclipse.epp.internal.mpc.core.util.TransportFactory@7592008d: Connection failed
        This is most often caused by a problem with your internet connection. Please check your internet connection and retry.

一些信息:

是的,我的凭据是正确的。

是的,我的代理设置是正确的

ssl.verify 在 git 配置中是 =false

Windows 7

Egit版本4.4.1(我也试过4.6)

在 Eclipse 之外克隆也有效

感谢您的帮助...如果我遗漏了一些信息,请询问...

解决方案是清除网络设置中的 HTTPS 字段并切换回手动。 市场运作和克隆。