Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 433687

Summary: app-portage/layman-2.0.0_rc3: please consider setting dummy username for git
Product: Portage Development Reporter: Michał Górny <mgorny>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal CC: cornicx, dolsen
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=480884
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 375789    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-09-01 21:58:05 UTC
A user of my overlay has just reported that layman failed to sync it with the following output:

 * Syncing selected overlays,...
 * Running Git... # ( cd /usr/portage/local/layman/mgorny  && /usr/bin/git
 * pull )

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'root@TuX.(none)')
 * Failure result returned from Git

--

I guess it is mostly my fault but I think that if layman set some dummy username and e-mail for git, that could at least users being hit with such ambiguous messages.
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2012-10-07 23:51:46 UTC
Done.  The name and email is global for all git repos.  Perhaps in a future release I'll make it settable per repo.  But that will take enabling per repo settings for all repo types, at least IMHO.

commit http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=faf6c74c1aa866d62137dcf203b3bca7a0e32634
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2012-11-19 01:51:30 UTC
released in layman-2.0.0_rc4 and rc5.