git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Suppressing the user.name warning
@ 2011-12-14 21:50 Jay Levitt
  2011-12-14 22:16 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Jay Levitt @ 2011-12-14 21:50 UTC (permalink / raw)
  To: git@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Suppressing the user.name warning
  2011-12-14 21:50 Suppressing the user.name warning Jay Levitt
@ 2011-12-14 22:16 ` Jeff King
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2011-12-14 22:16 UTC (permalink / raw)
  To: Jay Levitt; +Cc: git@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-14 22:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-14 21:50 Suppressing the user.name warning Jay Levitt
2011-12-14 22:16 ` Jeff King

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