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.git

Best,
Florian

-----Ursprüngliche Nachricht-----
Von: Wikitech-l [mailto:[email protected]] Im Auftrag von 
Stephen Niedzielski
Gesendet: Dienstag, 3. Januar 2017 19:41
An: Wikimedia developers <[email protected]>
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/DynamicPageList
or ssh://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 < 
[email protected]> 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:[email protected]] Im 
> Auftrag von Daniel Barrett
> Gesendet: Dienstag, 3. Januar 2017 19:36
> An: Wikimedia developers <[email protected]>
> 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 [email protected]" to confirm 
> that it works.
>
> I successfully cloned a repository (git clone https://dbarrett@gerrit.
> 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/ wiki/Gerrit/Tutorial. But when I try to push, I 
> get:
>
>   $ git review -R
>   Password for 'https://[email protected]':  <enter 
> password for developer account>
>   remote: Unauthorized
>   fatal: Authentication failed for 'https://dbarrett@gerrit.
> 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
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
>
> _______________________________________________
> Wikitech-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to