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

Re: [QGIT PATCH] Add safeguards to Git::userInfo()

From
AYAbdelrazak Younes <younes@lyx.org>
Date
Oct 7, 2008, 18:20 UTC
Message-ID
<48EBA854.1020205@lyx.org>
In-Reply-To
<e5bfff550810071103j52ce2617iae2f77b9bd3fba93@mail.gmail.com>
On 07/10/2008 20:03, Marco Costalba wrote:
Show 33 quoted lines
> On Tue, Oct 7, 2008 at 6:38 PM, Abdelrazak Younes<younes@lyx.org>  wrote:
>    
>> So how do you explain this:
>>
>>      
>
> Form git-config(1) docs:
>
> This command will fail if:
>
> -The config file is invalid,
> ......
> -you use --global option without $HOME being properly set.
>
>
> So please try to comment out following line
>
> --- a/src/git.cpp
> +++ b/src/git.cpp
> @@ -345,7 +345,7 @@ void Git::userInfo(SList info) {
>   	info.clear();
>   	info<<  "Environment"<<  user<<  email;
>
> -	errorReportingEnabled = false; // 'git config' could fail, see docs
> +	//errorReportingEnabled = false; // 'git config' could fail, see docs
>
>   	run("git config user.name",&user);
>   	run("git config user.email",&email);
>
>
> run from double click and you probably will see an error message box
> where git says $HOME is not set (I can reproduce this now).
>    
Right!
> So what I think is that when you run from command line there is the
> $HOME variable set and command does not fails.
>    
I see... but the only variable I have is HOMEPATH:
HOMEPATH=\Users\abdel

So I guess this was set by msysgit at installation time. But I see this variable only at the console (after typing 'set'), I don't see it in the user environment variable nor in the system one. So I guess the fix would be for msysgit to create this entry?

Thanks, Abdel.

Previous: Marco CostalbaNext: Marco Costalba
Message 14 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.