Kunal Mehta legoktm@debian.org ezt írta (időpont: 2023. febr. 7., K, 2:03):
Hi,
For pushing over HTTPS, it uses a different password than your login one. See https://gerrit.wikimedia.org/r/settings/#HTTPCredentials.
Thank you, Kunal! That causes another error.
1. I told git remote set-url origin ssh:// binbot@gerrit.wikimedia.org:29418/pywikibot/core.git. Isn't that for pushing on ssh? If not, what is the solution? 2. I think " failed to probe 'https://gerrit.wikimedia.org/' to detect provider" is an independent error. What is our provider? 3. The generated password for pushing is OK, bit the commit was rejected, see below (that needs an extra permission, who is the admin?) 4. Even if I succed, pushing is not the recommended way, and git review -R does not work. 5. I don't understand in the below message, what does it do with stable, it should push to master, sholdn't it?
c:\Pywikibot-dev\core>git push warning: failed to probe 'https://gerrit.wikimedia.org/' to detect provider warning: An error occurred while sending the request. warning: see https://aka.ms/gcm/autodetect for more information. fatal: An error occurred while sending the request. fatal: A k├ęrelmet megszak├ştott├ík: Nem siker├╝lt l├ętrehozni az SSL/TLS biztons├ígos csatorn├ít. Username for 'https://gerrit.wikimedia.org': binbot Password for 'https://binbot@gerrit.wikimedia.org': warning: failed to probe 'https://gerrit.wikimedia.org/' to detect provider warning: An error occurred while sending the request. warning: see https://aka.ms/gcm/autodetect for more information. Enumerating objects: 40, done. Counting objects: 100% (40/40), done. Delta compression using up to 4 threads Compressing objects: 100% (6/6), done. Writing objects: 100% (6/6), 527 bytes | 7.00 KiB/s, done. Total 6 (delta 5), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (5/5) remote: error: branch refs/heads/stable: remote: Push to refs/for/stable to create a review, or get 'Push' rights to update the branch. remote: User: binbot remote: Contact an administrator to fix the permissions remote: Processing changes: refs: 1, done To https://gerrit.wikimedia.org/r/pywikibot/core.git ! [remote rejected] stable -> stable (prohibited by Gerrit: not permitted: update) error: failed to push some refs to ' https://gerrit.wikimedia.org/r/pywikibot/core.git' Enumerating objects: 40, done. Counting objects: 100% (40/40), done. Delta compression using up to 4 threads Compressing objects: 100% (6/6), done. Writing objects: 100% (6/6), 527 bytes | 35.00 KiB/s, done. Total 6 (delta 5), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (5/5) remote: error: branch refs/heads/stable: remote: Push to refs/for/stable to create a review, or get 'Push' rights to update the branch. remote: User: binbot remote: Contact an administrator to fix the permissions remote: Processing changes: refs: 1, done To ssh://gerrit.wikimedia.org:29418/pywikibot/core.git ! [remote rejected] stable -> stable (prohibited by Gerrit: not permitted: update) error: failed to push some refs to 'ssh:// gerrit.wikimedia.org:29418/pywikibot/core.git'
c:\Pywikibot-dev\core>