git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] add git credential login to remote mediawiki

From
SPSimon Perrat <simon.perrat@gmail.com>
Date
Jun 12, 2012, 08:44 UTC
Message-ID
<CA+hdvHjnVc50rOsxeKUHrwBxRHi4FjcG5sSnnKYWejwXLesKNg@mail.gmail.com>
In-Reply-To
<1339440893-8522-1-git-send-email-Javier.Roucher-Iglesias@enismag.imag.fr>
2012/6/11 <Javier.Roucher-Iglesias@ensimag.imag.fr>
Show 7 quoted lines
> +       if ($op eq "fill") {
> +               while (<Reader>) {
> +                       my ($key, $value) = /([^=]*)=(.*)/;
> +                       # error if key undef
> +                       if (not defined $key) {
> +                               print STDERR "ERROR reciving reponse git
> credential fill\n";
rec*eiving re*sponse
Show 10 quoted lines
> +sub ask_login {
> +       run_credential("fill");
> +
> +       if (!$mediawiki->login( {
> +               lgname => $wiki_login,
> +               lgpassword => $wiki_passwd,
> +               lgdomain => $wiki_domain,
> +               } )) {
> +                       print STDERR "Failed to log in mediawiki user
> \"$wiki_login\" on $url\n";
Is there a reason for escaping $wiki_login alone ?
> +                       print STDERR "URL:$wiki_domain $url\n";
Space after :
> +                       print STDERR "(error " .
> +                           $mediawiki->{error}->{code} . ': ' .
> +                           $mediawiki->{error}->{details} . ")\n";
Broken indentation
> +               if (!$wiki_passwd) {
> +                       #user knows, password not.
> +                       ask_login();

know*n (other instances below) and don't forget space after # ;)

Best regards.
Previous: Matthieu MoyNext: roucherj
Message 3 of 4 in “add git credential login to remote mediawiki”
  1. add git credential login to remote mediawikijavier.roucher-iglesias@ensimag.imag.fr, Jun 11, 2012
  2. Matthieu MoyJun 11, 2012
  3. Simon PerratJun 12, 2012
  4. roucherjJun 12, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.