mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-04 19:26:52 +00:00
This occurs when there is no global setting for git config options user.name and user.email
An example of the error shown below:
E pre_commit.util.CalledProcessError: Command: ('/usr/bin/git', 'commit', '-m', 'init', '--allow-empty')
E Return code: 128
E Expected return code: 0
E Output: (none)
E Errors:
E
E *** Please tell me who you are.
E
E Run
E
E git config --global user.email "you@example.com"
E git config --global user.name "Your Name"
E
E to set your account's default identity.
E Omit --global to set the identity only in this repository.
E
E fatal: empty ident name (for <(null)>) not allowed
20 lines
442 B
YAML
20 lines
442 B
YAML
language: python
|
|
python: 3.5
|
|
env: # These should match the tox env list
|
|
- TOXENV=py27
|
|
- TOXENV=py34
|
|
- TOXENV=py35
|
|
- TOXENV=pypy
|
|
install: pip install coveralls tox
|
|
script: tox
|
|
before_install:
|
|
# Install git-lfs for a test
|
|
- './get-git-lfs.py && export PATH="/tmp/git-lfs:$PATH"'
|
|
after_success:
|
|
- coveralls
|
|
sudo: false
|
|
cache:
|
|
directories:
|
|
- $HOME/.cache/pip
|
|
- $HOME/.pre-commit
|
|
- /tmp/git-lfs
|