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

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

From
Rroucherj <roucherj@telesun.imag.fr>
Date
Jun 12, 2012, 12:20 UTC
Message-ID
<964d34b0b5dcdb2e26cac78096629d44@telesun.imag.fr>
In-Reply-To
<CA+hdvHjnVc50rOsxeKUHrwBxRHi4FjcG5sSnnKYWejwXLesKNg@mail.gmail.com>
On Tue, 12 Jun 2012 10:44:40 +0200, Simon Perrat wrote:
Show 14 quoted lines
> 2012/6/11 <Javier.Roucher-Iglesias@ensimag.imag.fr>
>
>> +       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
>
>
Changed it
Show 14 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 ?
>
Ok, i have changed the message now there is no quotes
>> +                       print STDERR "URL:$wiki_domain $url\n";
>
> Space after :
>
Space added
Show 6 quoted lines
>> +                       print STDERR "(error " .
>> +                           $mediawiki->{error}->{code} . ': ' .
>> +                           $mediawiki->{error}->{details} . ")\n";
>
> Broken indentation
>
indentation changed
Show 9 quoted lines
>> +               if (!$wiki_passwd) {
>> +                       #user knows, password not.
>> +                       ask_login();
>
> know*n (other instances below)
> and don't forget space after # ;)
>
>
> Best regards.
Space added
Thanks
Previous: Simon Perrat
Message 4 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.