As told at T194156#4194894 and by Chad on IRC, the sync-with-gerrit.py script should be rewritten to use REST API instead of requiring access to the gerrit server which only few people have. Thanks.
Description
Description
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | Feature | None | T218866 Figure a way to semi or fully automate adding/removing submodules to mediawiki/{extensions|skins}.git | ||
| Declined | None | T194318 Please rewrite sync-with-gerrit.py to use Gerrit REST API |
Event Timeline
Comment Actions
Every user has SSH access to the server. And you'd need to be a user to do the commit to the repo....who's being excluded here?
But I don't disagree, the REST api is always an improvement over SSH. That alone is reason enough to do this. Use the pygerrit2 library :)
Comment Actions
$ ssh -a -p 29418 maurelio@gerrit.wikimedia.org **** Welcome to Gerrit Code Review **** Hi MarcoAurelio, you have successfully connected over SSH. Unfortunately, interactive shells are disabled. To clone a hosted Git repository, use: git clone ssh://maurelio@gerrit.wikimedia.org:29418/REPOSITORY_NAME.git Connection to gerrit.wikimedia.org closed.
@demon ^^
So no, I cannot use that script unless I am doing something wrong here.
Comment Actions
You can't have an interactive shell. But sync-with-gerrit doesn't do that....try appending gerrit ls-projects to that
Generally, see this.... https://gerrit.wikimedia.org/r/Documentation/cmd-index.html#user_commands