Re: How to clone/commit/push (for 'buildbot' repo) ?
On Fri, Jun 10, 2022 at 11:59 AM Christian Lohmaier wrote: > On Thu, Jun 9, 2022 at 5:48 PM Maarten Hoes wrote: > > On Thu, Jun 9, 2022 at 4:20 PM Maarten Hoes wrote: > > > > [current gerrit sshd doesn't support sftp, only scp protocol, -O switch can > > be forced to use it] > > > > […] > > But perhaps someone should look at this for a more structural solution ? > > Gerrit will be updated this weekend, and part of that is also an > updated version of apache mina-sshd, that should also fix the sftp > issue. https://status.documentfoundation.org/#scheduled-21 Or maybe not, maybe that's not enabled in gerrit - gerrit upstream added a note re use of -O switch to the message instead: https://gerrit-review.googlesource.com/c/gerrit/+/338074 Thanks for Guilhem for pointing that out on IRC And there's always the option to download it via anon-access using e.g. curl or wget from https://gerrit.libreoffice.org/tools/hooks/commit-msg and chmod +x the file. ciao Christian
Re: How to clone/commit/push (for 'buildbot' repo) ?
Hi Maarten, *, On Thu, Jun 9, 2022 at 5:48 PM Maarten Hoes wrote: > On Thu, Jun 9, 2022 at 4:20 PM Maarten Hoes wrote: >> >> What I think I see happening is that the client is trying to force 'sftp' >> when the scp command is used, and the server is not having it ? Or perhaps I >> am simply using the wrong command to clone the repo and set it up for >> commiting / putting things up for review ? > > [current gerrit sshd doesn't support sftp, only scp protocol, -O switch can > be forced to use it] > > And if I add that to the scp commandline, it all works as expected, and I was > able to put my changes up for review in gerrit, doing the following, as I > mentioned in my earlier email : > […] > But perhaps someone should look at this for a more structural solution ? Gerrit will be updated this weekend, and part of that is also an updated version of apache mina-sshd, that should also fix the sftp issue. https://status.documentfoundation.org/#scheduled-21 ciao Christian
Re: How to clone/commit/push (for 'buildbot' repo) ?
On Thu, Jun 9, 2022 at 4:20 PM Maarten Hoes wrote: > > What I think I see happening is that the client is trying to force 'sftp' > when the scp command is used, and the server is not having it ? Or perhaps > I am simply using the wrong command to clone the repo and set it up for > commiting / putting things up for review ? > > Hrm. I did some more googling, and came across scp's '-O' switch, which as described in the man page : " -O Use the original SCP protocol for file transfers instead of the SFTP protocol. Forcing the use of the SCP protocol may be necessary for servers that do not implement SFTP, for backwards-compatibility for particular filename wildcard patterns and for expanding paths with a ‘~’ prefix for older SFTP servers. " And if I add that to the scp commandline, it all works as expected, and I was able to put my changes up for review in gerrit, doing the following, as I mentioned in my earlier email : > cd buildbot/lcov-report/ > git checkout -b lcov-report > cp ~/bin/libreoffice/README ~/bin/libreoffice/lcov-report.sh . > git add README lcov-report.sh > git commit > git push origin lcov-report:refs/for/master > But perhaps someone should look at this for a more structural solution ? - Maarten