git fatal empty ident not allowed

Everything seemed fine until today when I did my first git push, which returned the error:

fatal: empty ident <git@example.com> not allowed

It took me a while to figure out as .git/config had my user information set, and I even had a ~/.gitconfig file with default user information set. The git faq has an entry for this problem, but doesn’t mention server set-up.

The problem was the git user on my new server didn’t have any name information in /etc/passwd. It didn’t have this on the old server either, but for whatever reason it needed it on the new one (the old server is too slow to bother investigating). I changed /etc/passwd on the server, giving the git user the full name of ‘Git Git’ and everything worked fine. It’s weird that it cares…in the log, this user never shows up. Must be something to do with merging? Anyway, it works…


Related Posts

  1. iPhone/iPad UISearchBar and UISearchDisplayController Asynchronous Example
  2. SPF Records with Rails and ActionMailer
  3. Rails Fragment Caching With Multiple Accounts
  4. Create new git repository with gitosis
  5. git tags
You should follow me on Twitter: @patrickxb