git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Marco Costalba" <mcostalba@gmail.com>
To: "Abdelrazak Younes" <younes@lyx.org>
Cc: "Git Mailing List" <git@vger.kernel.org>
Subject: Re: [QGIT PATCH] Add safeguards to Git::userInfo()
Date: Tue, 7 Oct 2008 19:03:29 +0100	[thread overview]
Message-ID: <e5bfff550810071103j52ce2617iae2f77b9bd3fba93@mail.gmail.com> (raw)
In-Reply-To: <48EB9EB1.7080302@lyx.org>

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

So what I think is that when you run from command line there is the
$HOME variable set and command does not fails.


Marco

  reply	other threads:[~2008-10-07 18:04 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-07  7:33 [QGit bug] git user settings not retrieved when launched for Windows explorer Abdelrazak Younes
2008-10-07 11:10 ` Marco Costalba
2008-10-07 11:36   ` Abdelrazak Younes
2008-10-07 11:57     ` Marco Costalba
2008-10-07 12:08       ` Abdelrazak Younes
2008-10-07 12:31       ` Abdelrazak Younes
2008-10-07 16:48         ` Marco Costalba
2008-10-07 17:08           ` Abdelrazak Younes
2008-10-07 13:10       ` [QGIT PATCH] Add safeguards to Git::userInfo() Abdelrazak Younes
2008-10-07 16:50         ` Marco Costalba
2008-10-07 16:55           ` Marco Costalba
2008-10-07 17:38             ` Abdelrazak Younes
2008-10-07 18:03               ` Marco Costalba [this message]
2008-10-07 18:20                 ` Abdelrazak Younes
2008-10-07 18:28                   ` Marco Costalba
2008-10-07 17:12           ` Abdelrazak Younes
2008-10-07 11:16 ` [QGit bug] git user settings not retrieved when launched for Windows explorer Marco Costalba
2008-10-07 11:42   ` Abdelrazak Younes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e5bfff550810071103j52ce2617iae2f77b9bd3fba93@mail.gmail.com \
    --to=mcostalba@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=younes@lyx.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).