Package: etckeeper
Version: 1.13
Severity: important

Hello Joey. I installed a new jessie system today, and the
installation finished with an error message like this:

[...]
Processing triggers for libc-bin (2.19-9) ...

*** Please tell me who you are.

Run

  git config --global user.email "y...@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@mymachine.(none)')
E: Problem executing scripts DPkg::Post-Invoke 'if [ -x /usr/bin/etckeeper ]; 
then etckeeper post-install; fi'
E: Sub-process returned an error code


I didn't give my system a domain, and that's still a setup which seems
to be supported by debian-installer.

If we don't expect people to have an existing /root/.gitconfig file
before installing etckeeper, then etckeeper should probably ensure
that git is going to work before trying to use it.

For example, checking that /root/.gitconfig exists and writing a
default file like this one if it does not:

[user]
name = Nobody
email = nob...@example.com

would probably work. This is surely a hack, but it would better than nothing.
I trust that you will find a better solution if this hack is not a 
if this is considered too much hacky.

Thanks.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to