I absentmindedly forgot to branch master and then committed my change to gerrit. I know it's not the way things are supposed to be done, but do I need to abandon my change on gerrit and redo it?
About this board
Forgot to branch master and then committed to gerrit
Change the topic flag within gerrit's web UI.
You could rename the current branch (git branch -m new-name) and then review as normal. Or you could use the -t flag for git-review, and explicitly set the topic (git review -t new-name). I normally do the former in that situation. If later you do want a local master branch, you can just create it then (git checkout -b master gerrit/master).
Or there's probably another more correct way that I'm forgetting. :-) That's usually the case with Git.
Oh, sorry, I just realised: do you mean you've already pushed the change for review? In that case the topic flag is the way to go I think, or you can just change the topic via the web UI.
Yes it's been pushed for review. I've set the topic flag in gerrit. Thanks!
"Network unreachable" message when making ssh connection to Gerrit
Hello, I have started with the initial set up. I have everything upto adding ssh key to use with git.
I am running the command to make ssh connection to Gerrit: ssh email@example.com -p 29418
It gives me the message "ssh: connect to host gerrit.wikimedia.org port 29418: Network is unreachable". I tried changing the port to some random number, 29000. Still no luck.
I am fairly new here. Please help.
Can you try to
ping gerrit.wikimedia.org? What is the result? (i assume you're using a linux distro?)
29418 is the right port. Maybe it is blocked by a local router or firewall?
Is this problem resolved? Because I am still facing this problem, I tried switching the ports but all in vain
I am facing a similar problem. I think it's the proxy. But even after I installed corkscrew, shifted the installed binary to /bin and made appropriate changes to .ssh/config, I get the same error.
The ping to gerrit is fine, btw.
There was an error in the path to my corkscrew binary in .ssh/config. I corrected it, added my public keys to gerrit, and it worked. :)
Can't set up SSH keys
I have installed Git from this link and set my username and email.
When I type
ls ~/.ssh in the command line, I get the following message:
'ls' is not recognized as an internal or external command, operable program or batch file.
What have I done wrong?
Use the Git Bash shell, not Windows Command Prompt.
Thank you @KTC, I succeeded, but now I encounter another problem: I can't install git-review. When I run Git Bash as administrator and run the following command:
pip install git-review, I get an error message saying:
bash: pip: command not found
I ran this command after I had installed Python 3.6, but it still doesn't work...
Try "python -m pip ..." or "python3.6 -m pip ...".
@KTC, I still get this error: "bash: python: command not found".
Is it possible to submit Gerrit patches without installing git-review?
If you can't even run python despite having it installed, then something's not set up right in your environment.
My Python is installed in the following directory: C:/Users/Guy/AppData/Local/Programs/Python/Python36-32
Maybe it has something to do with it?
The section Gerrit/Tutorial#Download_MediaWiki_example_extension_using_Git seems to have split brain whether we are cloning the core or the example extension. Please fix.
I did some edits. Please check: Gerrit/Tutorial#Download_the_Examples_extension_using_Git.
Whats with those "quotes from the community"?
don't clone with https
Immediately after telling about how to get ssh keys set up correctly, the section: https://www.mediawiki.org/wiki/Gerrit/Tutorial#Download_the_Examples_extension_using_Git
gives an example of cloning, using https. Since that is not the preferred way to do it (and will later lead to confusing failures by
git review -s, why not give the preferred example, cloning with ssh from the start? Am I missing something?
I agree, please change it.
add new language in welcome.py pywikibot
Maybe I'm turning to the wrong address, if so please direct me.
I started with the problem of adding a new language to script welcome.py in pywikibot. I created the necessary pages from the bot and added a text to the text. But I can not fix the changes
Git.exe push --progress "origin" master: master
Fatal: Authentication failed for 'https://gerrit.wikimedia.org/r/pywikibot/core.git/ь
But I'm registered at https://gerrit.wikimedia.org/
Help me please!
You may use the Gerrit patch uploader to upload a patch.
Off-topic unrelated. Please do not test here.
Rusyn language needs a Latin variant
Respected Gerrit. I request assistance in implementing this [https://phabricator.wikimedia.org/T34676 request]. He already has a system of transliteration. This is to be done. Beforehand grateful.
Hi, anyone interested in implementing any code changes please see How to become a MediaWiki hacker. Thanks!