devstructure/blueprint — Issue #118: Check for git user.email, user.name configuration early
Author: rtucker
Created: 2012-03-05 22:23:59+00:00
State: open

Greetings!

On a machine where I don't typically use git,

```pre
rtucker@tech1:~$ sudo blueprint create tech1-slicehost
# [blueprint] searching for APT packages to exclude
No packages found matching wireless-crda.
No packages found matching os-prober.
No packages found matching ubuntu-standard.
No packages found matching installation-report.
No packages found matching linux-generic-pae.
No packages found matching linux-server.
No packages found matching ubuntu-desktop.
No packages found matching grub-pc.
# [blueprint] caching excluded APT packages
# [blueprint] searching for Yum packages to exclude
# [blueprint] parsing blueprintignore(5) rules
# [blueprint] searching for npm packages
# [blueprint] searching for APT packages
# [blueprint] searching for configuration files
# [blueprint] searching for software built from source
# [blueprint] searching for Python packages
# [blueprint] searching for Yum packages
# [blueprint] searching for Ruby gems
# [blueprint] searching for PEAR/PECL packages
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0

Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0

Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
# [blueprint] searching for service dependencies

*** 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 not allowed
Traceback (most recent call last):
File "/usr/local/bin/blueprint-create", line 60, in
b = blueprint.cli.create(options, args)
File "/usr/local/lib/python2.6/dist-packages/blueprint/cli.py", line 39, in create
b.commit(options.message or '')
File "/usr/local/lib/python2.6/dist-packages/blueprint/__init__.py", line 430, in commit
self._commit = git.commit_tree(tree, message, parent)
File "/usr/local/lib/python2.6/dist-packages/blueprint/git.py", line 177, in commit_tree
status, stdout = git('commit-tree', tree, stdin=message)
File "/usr/local/lib/python2.6/dist-packages/blueprint/git.py", line 83, in git
raise GitError(p.returncode)
blueprint.git.GitError: 128
```

Taking its advice and configuring git properly does fix the problem, but it might be worth testing for this early on.