pombreda / nbgit

Automatically exported from code.google.com/p/nbgit
0 stars 0 forks source link

NbGit does not work over http proxy #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use NetBeans with NbGit installed.
2. Got to Versioning/Git/Clone Other...
3. Repository URL: git://github.com/myabc/nbgit.git
4. Click Next > and Finish buttons

What is the expected output? What do you see instead?
Expected: A successful clone for git://github.com/myabc/nbgit.git repo
Instead: I get the following error: "git://github.com/myabc/nbgit.git: 
Connection refused: connect"

What versions of NbGit, NetBeans and Java are you using?
On what operating system?
NbGit 0.3
Netbeans 6.7.1 "All Bundle"
JDK 1.6.0_14

Please provide any additional information below.
NetBeans is configured for HTTP proxy using the Tools/Options/General tab 
either "Manual Proxy Settings" or "Use System Proxy Settings".

Original issue reported on code.google.com by eratos2...@gmail.com on 16 Oct 2009 at 9:49

GoogleCodeExporter commented 9 years ago
Forgot this question.

On what operating system?
Microsoft Windows XP [Version 5.1.2600]

Original comment by eratos2...@gmail.com on 16 Oct 2009 at 10:18

GoogleCodeExporter commented 9 years ago
Well, the git:// protocol does not use HTTP as a transfer protocol,
so I don't see how you would expect this to work.

Original comment by jonas.fonseca on 17 Oct 2009 at 12:45

GoogleCodeExporter commented 9 years ago
You are totally right.  However I found an article that shows how to do it with 
a 
HTTP CONNECT proxy tunnel.

http://www.emilsit.net/blog/archives/how-to-use-the-git-protocol-through-a-http-
connect-proxy/

I was not able to use it cause I don't have access to the firewall/proxy to 
enable 
port 9418 and I'm using windows..

Original comment by eratos2...@gmail.com on 19 Oct 2009 at 2:54

GoogleCodeExporter commented 9 years ago
Yes, Git can fetch and push on HTTP thanks to WebDav or HTTP CONNECT.

This bug is probably related to:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=298445

If so, the bug has to be fixed in jgit before behing fixed in nbgit.

Original comment by KwisatzHaderach.x@gmail.com on 4 Jan 2010 at 5:42

GoogleCodeExporter commented 9 years ago
I checked the source code of netbeans and jgit:

http://egit.eclipse.org/w/?
p=jgit.git;a=blob_plain;f=org.eclipse.jgit/src/org/eclipse/jgit/util/HttpSupport
.java

http://hg.netbeans.org/main/raw-
file/bb7e968e31c2/o.n.core/src/org/netbeans/core/NbProxySelector.java

They both use http://java.sun.com/javase/6/docs/api/java/net/ProxySelector.html 
so it should work 
out of the box.

Original comment by KwisatzHaderach.x@gmail.com on 4 Jan 2010 at 6:07

GoogleCodeExporter commented 9 years ago
i encountered the same error. but when i removed the "git:", cloning went 
successfully. Try this:

Repository URL: //github.com/myabc/nbgit.git

Original comment by ostraki...@gmail.com on 29 Jul 2010 at 6:43