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

Re: [QGit bug] git user settings not retrieved when launched for Windows explorer

From
AYAbdelrazak Younes <younes@lyx.org>
Date
Oct 7, 2008, 17:08 UTC
Message-ID
<48EB977E.1030401@lyx.org>
In-Reply-To
<e5bfff550810070948p6a9b2fdcq51f2b1580cef2f4e@mail.gmail.com>
On 07/10/2008 18:48, Marco Costalba wrote:
Show 28 quoted lines
> On Tue, Oct 7, 2008 at 2:31 PM, Abdelrazak Younes<younes@lyx.org>  wrote:
>    
>> No, 'git config user.name' works fine in any directory, even on the naked
>> Windows console (I mean without msys bash). So that must be something else.
>> I've traced it down to
>> MyProcess::on_finished().
>>
>>     isErrorExit =   (exitStatus != QProcess::NormalExit)
>>                  || (exitCode != 0&&  isWinShell)
>>                  || !errorDesc.isEmpty()
>>                  ||  canceling;
>>
>> At this point we have:
>> exitStatus = NormalExit
>> exitCode = 1
>> isWinShell = false
>> errorDesc.isEmpty() returns true
>> canceling = false
>>
>> Which gives 'isErrorExit = false'. I wonder if the isWinShell test is
>> correct?
>>
>>      
>
> Hi Abdel,
>
> I would think it is correct to return isErrorExit == false
>    
OK.
> The problem is that it seems git config return empty data if run from
> outside git directory...isn't it ?
>    

No, as I said, 'git config user.name' is working just fine outside git directory.

Abdel.
Previous: Marco CostalbaNext: Abdelrazak Younes
Message 8 of 18 in “[QGit bug] git user settings not retrieved when launched for Windows explorer”
  1. Abdelrazak YounesOct 7, 2008
  2. Marco CostalbaOct 7, 2008
  3. Abdelrazak YounesOct 7, 2008
  4. Marco CostalbaOct 7, 2008
  5. Abdelrazak YounesOct 7, 2008
  6. Abdelrazak YounesOct 7, 2008
  7. Marco CostalbaOct 7, 2008
  8. Abdelrazak YounesOct 7, 2008
  9. Add safeguards to Git::userInfo()Abdelrazak Younes, Oct 7, 2008
  10. Marco CostalbaOct 7, 2008
  11. Marco CostalbaOct 7, 2008
  12. Abdelrazak YounesOct 7, 2008
  13. Marco CostalbaOct 7, 2008
  14. Abdelrazak YounesOct 7, 2008
  15. Marco CostalbaOct 7, 2008
  16. Abdelrazak YounesOct 7, 2008
  17. Marco CostalbaOct 7, 2008
  18. Abdelrazak YounesOct 7, 2008

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.