From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>,
Andre McCurdy <armccurdy@gmail.com>
Cc: bitbake-devel <bitbake-devel@lists.openembedded.org>
Subject: Re: [PATCH] fetch/git: Change to use clearer ssh url syntax for broken servers
Date: Thu, 14 Jan 2016 15:25:59 +0000 [thread overview]
Message-ID: <1452785159.28375.135.camel@linuxfoundation.org> (raw)
In-Reply-To: <90f0d7cacc2743e58535b16f6fe316bd@XBOX02.axis.com>
On Thu, 2016-01-14 at 14:47 +0000, Peter Kjellerstedt wrote:
> > -----Original Message-----
> > From: bitbake-devel-bounces@lists.openembedded.org [mailto:bitbake-
> > devel-bounces@lists.openembedded.org] On Behalf Of Richard Purdie
> > Sent: den 13 januari 2016 23:20
> > To: Andre McCurdy
> > Cc: bitbake-devel
> > Subject: Re: [bitbake-devel] [PATCH] fetch/git: Change to use
> > clearer
> > ssh url syntax for broken servers
> >
> > On Wed, 2016-01-13 at 13:37 -0800, Andre McCurdy wrote:
> > > On Thu, Jan 7, 2016 at 5:18 AM, Richard Purdie
> > > <richard.purdie@linuxfoundation.org> wrote:
> > > > Some servers, e.g. bitbucket.org can't cope with ssh:// as part
> > > > of
> > > > the git url syntax. git itself is happy enough with this but
> > > > you
> > > > get server side errors when using it.
> > > >
> > > > This changes the git fetcher to use the more common ssh url
> > > > format
> > > > which also means we need a : before the path.
> > >
> > > This seems to break SRC_URIs using ssh to access self hosted git
> > > servers setup following the process described here:
> > >
> > > https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the
> > > -Ser
> > > ver
> > >
> > > An example of such a SRC_URI, which now fails to work:
> > >
> > > SRC_URI = "git
> > > ://git@mylocalserver.com:/opt/git/myrepo.git;protocol=ssh"
> >
> > Does:
> >
> > SRC_URI = "git
> > ://git@mylocalserver.com/opt/git/myrepo.git;protocol=ssh"
> >
> > work though?
>
> The above may work, but this does not any more:
>
> SRC_URI = "git
> ://git@mylocalserver.com:12345/opt/git/myrepo.git;protocol=ssh"
>
> I.e., when the Git server requires a port, like our Gerrit server
> does...
> Please revert the commit and solve the actual problem with
> bitbucket.org
> some other way.
I'm not sure there is one other than special casing bitbucket urls in
the fetcher.
With Andre's case, we clearly don't support cut and paste of urls into
SRC_URI so I'm less concerned about that but the above is more of an
issue.
The url parsing in the fetcher should really be aware of port numbers
and I suspect if we do that, we can fix the above. I'm not going to
instantly revert the other change over this.
I'd also state that if you expect particular syntaxes to work, I'd
strongly encourage they're in the selftests for the fetcher. The self
tests didn't show any regressions...
Cheers,
Richard
next prev parent reply other threads:[~2016-01-14 15:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-07 13:18 [PATCH] fetch/git: Change to use clearer ssh url syntax for broken servers Richard Purdie
2016-01-13 21:37 ` Andre McCurdy
2016-01-13 22:19 ` Richard Purdie
2016-01-13 23:20 ` Andre McCurdy
2016-01-13 23:59 ` Andre McCurdy
2016-01-14 14:47 ` Peter Kjellerstedt
2016-01-14 15:25 ` Richard Purdie [this message]
2016-01-14 16:51 ` Andre McCurdy
2016-01-14 17:07 ` Olof Johansson
2016-01-14 17:50 ` Peter Kjellerstedt
2016-01-15 15:04 ` Richard Purdie
2016-01-15 16:18 ` Olof Johansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1452785159.28375.135.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=armccurdy@gmail.com \
--cc=bitbake-devel@lists.openembedded.org \
--cc=peter.kjellerstedt@axis.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.