dotwaffle / rancid-git

DEPRECATED -- Strongly consider using the upstream, the version here is very out of date and a poor place to start from!
http://www.shrubbery.net/rancid/
Other
218 stars 92 forks source link

rancid-cvs should test for potential `git init` failure #18

Closed jeremyvisser closed 10 years ago

jeremyvisser commented 10 years ago

When initialising my repository, I got the following:

rancid@intranet:~$ /usr/lib/rancid/bin/rancid-cvs 
Initialized empty Git repository in /var/lib/rancid/.git/

*** 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 <rancid@intranet.contoso.com>) not allowed

*** 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 <rancid@intranet.contoso.com>) not allowed

*** 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 <rancid@intranet.contoso.com>) not allowed

The root cause may be problems within /etc/passwd — I notice the Debian package did not assign a 'full name' to the rancid user, meaning git could not successfully guess a name.

I suggest to either:

In addition to the above, it would be good to have the Debian package assign a full name to the rancid user.

dotwaffle commented 10 years ago

I've added a GECOS field to the adduser -- are you able to test this for me? I'm not in a position to test with a live debian system at the moment.

jeremyvisser commented 10 years ago

Will test and report back when I have a chance.

jeremyvisser commented 10 years ago

I can confirm that adding that GECOS field made it happy enough to proceed on first go.

dotwaffle commented 10 years ago

Marvellous -- thanks for the bug reports ;)