On Wednesday 29 April 2009 18:47:57 Juiceman wrote: > On Wed, Apr 29, 2009 at 6:34 AM, xor <xor at gmx.li> wrote: > > On Tue, 2009-04-28 at 08:32 +0800, Daniel Cheng wrote: > >> On Tue, Apr 28, 2009 at 6:11 AM, xor <xor at gmx.li> wrote: > >> > Hi, > >> > > >> > I've been trying to set up my IDE to work with git and found the > >> > following one: > >> > > >> > http://www.jgit.org/ > >> > > >> > It pulls, it diffs, everything, but push won't work: > >> > "Can't connect to any URI: git://github.com/freenet/fred-staging.git > >> > (Transport error occured during push operation: Protocol error: > >> > expected LF)" > >> > > >> > Notice that I did not specify the git:// URI when fetching the > >> > repository, I used the git@ one and enabled git+ssh. > >> > >> try to fix this in command line: > >> > >> $ cd fred > >> $ git remote show > >> > >> this should show your current git remote detail, that is the git:// uri. > >> If it is wrong, you can fix it with: > >> > >> $ git remote rm original > >> $ git remote add original git at github.com:freenet/fred-staging.git > >> > >> then go to eclipse and try again > > > > As I've said, I *did* specify the correct URI when creating the > > repository. "get remote show origin -n" says the URI is: > > git+ssh://git at github.com/freenet/fred-staging.git > > The correct URL is > git at github.com:freenet/fred-staging.git not > git at github.com/freenet/fred-staging.git (see the : ?) > > I repeat this because this is the first problem I had.
And I repeat that git+ssh://git at github.com/freenet/fred-staging.git is just another representation of the correct URI which tells the client that it shall use SSH. If I enter the "git at github.com:freenet/fred-staging.git" URI then eclipsegit auto-changes it to the URI which I told you. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20090429/639bff36/attachment.pgp>
