Community
Participate
Working Groups
Build Identifier: 20110301-1815 I create a new project, share it (right click project, Team -> Share Project -> Git), add files, commit, then i push (right click project, Team -> Remote -> Push..) to a remote repository: Host: my machine ip or domain name, absolutely reachable via ftp Repository path "/test.git" (not influent however) Protocol: Ftp Port: empty Authentication: providing user and password or not doesn't change the behavior. Click Next Error dialog: Transport Error Cannot get remote repository refs. Reason: sun.net.www.protocol.ftp.FtpURLConnection cannot be cast to java.net.HttpURLConnection Reproducible: Always
Egit 0.11.3
Also happening on Ubuntu natty 64bit using java OpenJDK 1.6.0_22 (also tried java HotSpot 64-Bit 1.6.0_24) with EGit 0.12.1 Happens when clicking on "Next" as described by Michael and also when directly clicking on "Finish" Using the "git push" command manually from bash appears to work fine with the same ftp server...
I take back what I said about it working from command line - Of course I have the same issue as described here: http://stackoverflow.com/questions/4315413/git-fails-to-push-to-ftp-server One of the workarounds described there would work for EGit as well (for those who are on linux): Use webdrive/netdrive (and curlftpfs) [or gvfs] to mount the ftp directory locally. I haven't tried that though...
I've got the same error when i do a clone from ftp. This errors occurs w/ both Egit 2.0 and Egit 2.1.0.201207191423. With clone, there is a workaround: after setting protocol to "ftp", i remove the string "ftp:///" from URI to make it works.
This is a problem in JGit, moving there.