git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Jeremy Ramer" <jdramer@gmail.com>
To: "Alexander Gavrilov" <angavrilov@gmail.com>
Cc: "Junio C Hamano" <gitster@pobox.com>,
	spearce@spearce.org, sverre@rabbelier.nl,
	"Peter Krefting" <peter@softwolves.pp.se>,
	"Git Mailing List" <git@vger.kernel.org>
Subject: Re: git-gui: Warn when username and e-mail address is unconfigured?
Date: Fri, 5 Dec 2008 13:18:54 -0700	[thread overview]
Message-ID: <b9fd99020812051218o1c337148u12b8e190c60f32eb@mail.gmail.com> (raw)
In-Reply-To: <bb6f213e0812050301t2f18061epfeff7bc74ee6f28a@mail.gmail.com>

On Fri, Dec 5, 2008 at 4:01 AM, Alexander Gavrilov <angavrilov@gmail.com> wrote:
> On Fri, Dec 5, 2008 at 2:58 AM, Jeremy Ramer <jdramer@gmail.com> wrote:
>> Yes, that does appear to be the message I get, with the following
>> environment variables:
>> - GIT_AUTHOR_EMAIL
>> - GIT_COMMITTER_NAME
>> - GIT_COMMITER_EMAIL
>> - GIT_AUTHOR_NAME
>>
>> Now that I look closer I see that I am setting these in my .bashrc
>> file.  When I first started using git a year ago I was given the
>> impression that these were needed. But I see that that is no longer
>> the case since I use the config:
>>
>> git config --global user.name "Your Name"
>> git config --global user.email "you@example.com"
>>
>> Removing them from my .bashrc removes the warning.  In hindsight the
>> warning should have clued me in, but I've been seeing that message
>> since I first started using git on Cygwin so I figured it was a cygwin
>> issue that I couldn't do anything about.
>>
>
> I wonder if what the warning says is still true. It's 2 years since
> it was added, so the issue might have been fixed.
>
> If you run "GIT_AUTHOR_NAME=foobar git gui", and make a commit,
> does it set the author name to 'foobar'?

I ran
export GIT_AUTHOR_NAME="foobar git gui"
and then made a commit with git gui and it did not set the author name
to foobar.  It used my global config name.

>
> Alexander
>

  reply	other threads:[~2008-12-05 20:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-04 10:43 git-gui: Warn when username and e-mail address is unconfigured? Peter Krefting
2008-12-04 16:05 ` Jeremy Ramer
2008-12-04 19:04   ` Sverre Rabbelier
2008-12-04 20:54     ` Jeremy Ramer
2008-12-04 21:30       ` Alexander Gavrilov
2008-12-04 21:34       ` Junio C Hamano
2008-12-04 23:58         ` Jeremy Ramer
2008-12-05 11:01           ` Alexander Gavrilov
2008-12-05 20:18             ` Jeremy Ramer [this message]
2008-12-12  2:37               ` jidanni

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=b9fd99020812051218o1c337148u12b8e190c60f32eb@mail.gmail.com \
    --to=jdramer@gmail.com \
    --cc=angavrilov@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=peter@softwolves.pp.se \
    --cc=spearce@spearce.org \
    --cc=sverre@rabbelier.nl \
    /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).