因此,我正在使用我正在修复的应用中的遗留代码。该代码使用jGit在启动时提取回购。在提取调用期间,我传入的URL类似于:
https://thisone@git.hungry.androider.com/myrepo.git
问题是,当我进行提取调用时,我收到一条错误消息:
cannot open git-upload-pack
我注意到有一些SO答案说要使用ProxySelector,但我注意到在ProxySelector中,select(Uri)调用正在传递以下URI:
https://thisone@git.hungry.androider.com/myrepo.git/info/refs?service=git-upload-pack
我的问题是,
的位置和原因/info/refs?service=git-upload-pack
被添加到我的网址/ uri?
我怎样才能克服这个错误?
以下是完整的堆栈跟踪:
10-14 10:45:28.469 25237-25462 / com.atimi.sportsapp W / System.err:org.eclipse.jgit.api.errors.TransportException:https://fugutest@git.sports.atimi.com/ahl-hershey-bears-qa.git:无法打开git-upload-包 10-14 10:45:28.481 25237-25462 / com.atimi.sportsapp W / System.err:at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139) 10-14 10:45:28.492 25237-25462 / com.atimi.sportsapp W / System.err:at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:261) 10-14 10:45:28.504 25237-25462 / com.atimi.sportsapp W / System.err:at com.atimi.caviar.CaviarGitRepo $ UpdateRunnable.update(CaviarGitRepo.java:577) 10-14 10:45:28.515 25237-25462 / com.atimi.sportsapp W / System.err:at com.atimi.caviar.CaviarGitRepo $ UpdateRunnable.run(CaviarGitRepo.java:441) 10-14 10:45:28.526 25237-25462 / com.atimi.sportsapp W / System.err:at java.lang.Thread.run(Thread.java:818) 10-14 10:45:28.541 25237-25462 / com.atimi.sportsapp W / System.err:引起:org.eclipse.jgit.errors.TransportException:https://fugutest@git.sports.atimi.com/ahl-hershey-bears-qa.git:无法打开git-upload-pack 10-14 10:45:28.562 25237-25462 / com.atimi.sportsapp W / System.err:at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:524) 10-14 10:45:28.571 25237-25462 / com.atimi.sportsapp W / System.err:at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309) 10-14 10:45:28.580 25237-25462 / com.atimi.sportsapp W / System.err:at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136) 10-14 10:45:28.589 25237-25462 / com.atimi.sportsapp W / System.err:at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122) 10-14 10:45:28.597 25237-25462 / com.atimi.sportsapp W / System.err:at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138) 10-14 10:45:28.606 25237-25462 / com.atimi.sportsapp W / System.err:at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130) 10-14 10:45:28.611 25237-25462 / com.atimi.sportsapp W / System.err:... 4更多 10-14 10:45:28.625 25237-25462 / com.atimi.sportsapp W / System.err:引起:java.net.UnknownHostException:无法解析主机" /ahl-hershey-bears-qa.git / info / refs":没有与主机名关联的地址 10-14 10:45:28.659 25237-25462 / com.atimi.sportsapp W / System.err:at java.net.InetAddress.lookupHostByName(InetAddress.java:457) 10-14 10:45:28.668 25237-25462 / com.atimi.sportsapp W / System.err:at java.net.InetAddress.getAllByNameImpl(InetAddress.java:252) 10-14 10:45:28.677 25237-25462 / com.atimi.sportsapp W / System.err:at java.net.InetAddress.getAllByName(InetAddress.java:215) 10-14 10:45:28.686 25237-25462 / com.atimi.sportsapp W / System.err:at com.android.okhttp.HostResolver $ 1.getAllByName(HostResolver.java:29) 10-14 10:45:28.697 25237-25462 / com.atimi.sportsapp W / System.err:at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:232) 10-14 10:45:28.706 25237-25462 / com.atimi.sportsapp W / System.err:at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:124) 10-14 10:45:28.715 25237-25462 / com.atimi.sportsapp W / System.err:at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:272) 10-14 10:45:28.724 25237-25462 / com.atimi.sportsapp W / System.err:at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211) 10-14 10:45:28.735 25237-25462 / com.atimi.sportsapp W / System.err:at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382) 10-14 10:45:28.746 25237-25462 / com.atimi.sportsapp W / System.err:at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:332) 10-14 10:45:28.757 25237-25462 / com.atimi.sportsapp W / System.err:at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:500) 10-14 10:45:28.769 25237-25462 / com.atimi.sportsapp W / System.err:at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105) 10-14 10:45:28.780 25237-25462 / com.atimi.sportsapp W / System.err:at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25) 10-14 10:45:28.790 25237-25462 / com.atimi.sportsapp W / System.err:at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:98) 10-14 10:45:28.799 25237-25462 / com.atimi.sportsapp W / System.err:at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:168) 10-14 10:45:28.808 25237-25462 / com.atimi.sportsapp W / System.err:at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:475) 10-14 10:45:28.813 25237-25462 / com.atimi.sportsapp W / System.err:... 9更多 10-14 10:45:28.830 25237-25462 / com.atimi.sportsapp W / System.err:引起:android.system.GaiException:android_getaddrinfo failed:EAI_NODATA(没有与主机名关联的地址) 10-14 10:45:28.899 25237-25462 / com.atimi.sportsapp W / System.err:at libcore.io.Posix.android_getaddrinfo(Native Method) 10-14 10:45:28.909 25237-25462 / com.atimi.sportsapp W / System.err:at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:55) 10-14 10:45:28.919 25237-25462 / com.atimi.sportsapp W / System.err:at java.net.InetAddress.lookupHostByName(InetAddress.java:438) 10-14 10:45:28.923 25237-25462 / com.atimi.sportsapp W / System.err:... 24更多