Thanks everyone. That worked. FYI, to clone the repository, I copied and pasted the clone command displayed on the extension’s main page on Gerrit:
https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/Dynamic...
which is given as an https URL by default: git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/DynamicPageList
I just updated the developer Gerrit docs to emphasize that the ssh protocol should be used:
https://www.mediawiki.org/w/index.php?title=Gerrit/Tutorial&diff=2338660...
Thanks again, DanB
From: Wikitech-l [mailto:wikitech-l-bounces@lists.wikimedia.org] On Behalf Of Florian Schmidt Sent: Tuesday, January 03, 2017 1:44 PM To: 'Wikimedia developers' wikitech-l@lists.wikimedia.org Subject: Re: [Wikitech-l] Gerrit authentication denied - help
You shouldn't edit the files in .git directly :P Git ships with nice frontends for it to make sure, you don't do anything false :) To update the remote of a remote, simply run: git remote set-url origin ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DynamicPageList.gitssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DynamicPageList.git
Best, Florian
-----Ursprüngliche Nachricht----- Von: Wikitech-l [mailto:wikitech-l-bounces@lists.wikimedia.org] Im Auftrag von Stephen Niedzielski Gesendet: Dienstag, 3. Januar 2017 19:41 An: Wikimedia developers <wikitech-l@lists.wikimedia.orgmailto:wikitech-l@lists.wikimedia.org> Betreff: Re: [Wikitech-l] Gerrit authentication denied - help
I'm with Florian I think your repo URL needs to look like https://gerrit.wikimedia.org/r/mediawiki/extensions/DynamicPageListhttps://gerrit.wikimedia.org/r/mediawiki/extensions/DynamicPageList or ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DynamicPageList.gitssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DynamicPageList.git. You can just edit your DynamicPageList/.git/config origin
On Tue, Jan 3, 2017 at 11:38 AM, Florian Schmidt < florian.schmidt.welzow@t-online.demailto:florian.schmidt.welzow@t-online.de> wrote:
Could you please clone the repo using ssh:// instead of https://? If you clone via https:// you need to provide the http password, which you can obtain from your gerrit settings (however, I would prefer working with ssh :P).
Best, Florian
-----Ursprüngliche Nachricht----- Von: Wikitech-l [mailto:wikitech-l-bounces@lists.wikimedia.org] Im Auftrag von Daniel Barrett Gesendet: Dienstag, 3. Januar 2017 19:36 An: Wikimedia developers <wikitech-l@lists.wikimedia.orgmailto:wikitech-l@lists.wikimedia.org> Betreff: [Wikitech-l] Gerrit authentication denied - help
I am using Gerrit for the first time and am getting an authentication failure when I run "git review -R". Any help appreciated.
I've successfully created a developer account, installed my SSH public key, and run "ssh -p 29418 dbarrett@gerrit.wikimedia.orgmailto:dbarrett@gerrit.wikimedia.org" to confirm that it works.
I successfully cloned a repository (git clone https://dbarrett@gerrit. wikimedia.org/r/mediawiki/extensions/DynamicPageListhttp://wikimedia.org/r/mediawiki/extensions/DynamicPageList), created a branch, made a change, and committed it to the branch with a standard commit message, all following the directions at https://www.mediawiki.org/https://www.mediawiki.org/ wiki/Gerrit/Tutorial. But when I try to push, I get:
$ git review -R Password for 'https://dbarrett@gerrit.wikimedia.orghttps://dbarrett@gerrit.wikimedia.org': <enter password for developer account> remote: Unauthorized fatal: Authentication failed for 'https://dbarrett@gerrit. wikimedia.org/r/mediawiki/extensions/DynamicPageList/http://wikimedia.org/r/mediawiki/extensions/DynamicPageList/'
(Frankly, I'm surprised to see password authentication at all, given the SSH key is installed, and the private key is added to my ssh-agent.)
What should I try next? Thank you very much.
DanB
Wikitech-l mailing list Wikitech-l@lists.wikimedia.orgmailto:Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-lhttps://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.orgmailto:Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-lhttps://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.orgmailto:Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-lhttps://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.orgmailto:Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-lhttps://lists.wikimedia.org/mailman/listinfo/wikitech-l