Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#74113 - Unusable as it can't read git config

Attached to Project: Community Packages
Opened by Joel (jmcb) - Monday, 14 March 2022, 14:46 GMT
Last edited by David Thurstenson (thurstylark) - Saturday, 26 March 2022, 02:24 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: When I try to run etckeeper commit, I get the follwing result:

[joelm@jarchport ~]$ sudo etckeeper commit
Committer identity unknown

*** 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: empty ident name (for <root@hostname>) not allowed

However, my git is definitely configured

Additional info:
* package version(s)
etckeeper 1.18.17-1
git 2.35.1-1
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
Configure git
Install etckeeper (you will see it fail with the same message on the post-update hook)
etckeeper init
etckeeper commit
This task depends upon

Closed by  David Thurstenson (thurstylark)
Saturday, 26 March 2022, 02:24 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Configure git using either the system config, or root's global config.
Comment by David Thurstenson (thurstylark) - Saturday, 26 March 2022, 02:23 GMT
You need to set these options either in the system-wide configuration with `git config --system`, or in root's global configuration with `git config --global` as root. `git config --global` as another user will not make the resulting configuration usable by the root user. See: https://wiki.archlinux.org/title/Git#Using_git-config

Loading...