* git push refspec URL weirdness
@ 2006-03-25 3:42 Jon Loeliger
2006-03-25 6:22 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Jon Loeliger @ 2006-03-25 3:42 UTC (permalink / raw)
To: git
I wanted to git push some bits to a remote repo
and set up this .git/refs/remotes/publish file:
URL: git+ssh://www.example.com/some/path/repo.git
Push: my-branch:public-branch
So that I could "git push publish".
The ssh on the far side is listening on port 1234
and not the default 22. So I slapped this into my
~/.ssh/config file on the local machine:
Host www.example.com
Port 1234
This worked great for a straight "ssh www.example.com"
connection. However, git still complained that port 22
was refusing connections. It was. Git shouldn't have
been trying to use it.
So Junio suggested taking advantage of the fact that the
default refspec uses git+ssh and use this instead:
URL: www.example.com:/pub/software/linux-2.6-86xx.git
Push: my-branch:public-branch
Which just worked.
So this is either a bug report or google food. :-)
jdl
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: git push refspec URL weirdness
2006-03-25 3:42 git push refspec URL weirdness Jon Loeliger
@ 2006-03-25 6:22 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2006-03-25 6:22 UTC (permalink / raw)
To: git
Jon Loeliger <jdl@jdl.com> writes:
> So Junio suggested taking advantage of the fact that the
> default refspec uses git+ssh and use this instead:
>
> URL: www.example.com:/pub/software/linux-2.6-86xx.git
> Push: my-branch:public-branch
>
> Which just worked.
>
> So this is either a bug report or google food. :-)
Actually, I did not suggest it as a workaround (I've never used
git+ssh:// URL myself -- I'm old fashioned -- and always used
host:path syntax). If git+ssh:// insists on the fixed port, it
surely is broken, but I do not see how it would make a
difference. In either case, connect.c::git_connect() goes
PROTO_SSH codepath which never opens a tcp connection itself --
it just calls the same "ssh" command.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-25 6:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-25 3:42 git push refspec URL weirdness Jon Loeliger
2006-03-25 6:22 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox