Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 592422 - sys-apps/etckeeper: git config for user portage
Summary: sys-apps/etckeeper: git config for user portage
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low trivial
Assignee: Manuel Rüger (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-30 11:06 UTC by karloff
Modified: 2016-10-24 22:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,15.88 KB, application/x-info)
2016-08-30 11:06 UTC, karloff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description karloff 2016-08-30 11:06:34 UTC
Created attachment 444428 [details]
emerge --info

Since i installed sys-apps/etckeeper i get every emerge to following message:
==============

*** 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@loki.(none)')
    warning: etckeeper failed to commit changes in /etc using git

==================

The problem is that there is no real user portage so i can't tell etckeeper
the wanted information in this case.

Is it possible to fix, maybe to use the informations from root user?
Comment 1 Manuel Rüger (RETIRED) gentoo-dev 2016-09-04 14:15:59 UTC
You can change GIT_COMMIT_OPTIONS="" in etckeeper.conf to manipulate GIT_CONFIG variable that points to the used gitconfig. 

Another solution, you could try, is to change the required settings in /etc/gitconfig which is the global config file for git.

Please let me know if this fixes your issue.
Comment 2 Manuel Rüger (RETIRED) gentoo-dev 2016-10-24 22:00:15 UTC
Haven't heard back, please reopen if my suggestion does not work for you.