# Suppressing the user.name warning

2 messages from 2011-12-14 to 2011-12-14. Participants: Jay Levitt, Jeff King.
Thread: https://gitlist.dev/t/29168

## Jay Levitt, 2011-12-14 21:50

Subject: Suppressing the user.name warning
Message-ID: <4EE91A1D.6080908@gmail.com>
URL: https://gitlist.dev/e/4EE91A1D.6080908%40gmail.com

```
Is there a way to suppress the user.name/email warning without configuring 
them in .gitconfig? I want to pass them in SSH as GIT_AUTHOR_NAME and 
GIT_AUTHOR_EMAIL; git uses the values, but still warns me every time.

Seems like if git can get that data in any form, it shouldn't complain about 
not having it.  No?

Jay Levitt

```

## Jeff King, 2011-12-14 22:16

Subject: Re: Suppressing the user.name warning
Message-ID: <20111214221608.GA12644@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20111214221608.GA12644%40sigill.intra.peff.net
In-Reply-To: <4EE91A1D.6080908@gmail.com>

```
On Wed, Dec 14, 2011 at 04:50:21PM -0500, Jay Levitt wrote:

> Is there a way to suppress the user.name/email warning without
> configuring them in .gitconfig? I want to pass them in SSH as
> GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL; git uses the values, but still
> warns me every time.
> 
> Seems like if git can get that data in any form, it shouldn't
> complain about not having it.  No?

Git should not be complaining if it gets the data from the environment.
However, you should also be setting GIT_COMMITTER_NAME and
GIT_COMMITTER_EMAIL. Otherwise they will come from the passwd file, and
git will issue the warning.

-Peff

```
