c4urself / bump2version

Version-bump your software with a single command
https://pypi.python.org/pypi/bump2version
MIT License
1.06k stars 134 forks source link

issues to read user.email with --tag #152

Closed NargiT closed 4 years ago

NargiT commented 4 years ago

hello I am using tox and I try to automate my workflow in order to call bump2version when releasing my app.

I tried with vanilla bump2version --tag patch and this is what i get

release installdeps: bump2version
release installed: bump2version==1.0.0
release run-test-pre: PYTHONHASHSEED='3557119173'
release run-test: commands[0] | bump2version --tag patch

*** 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: unable to auto-detect email address (got 'username@hostname.(none)')

Doing manually git tag x.y.z work perferctly and my .gitconfig is field correctly for user.email and user.name.

any help would be appreciated.

NargiT commented 4 years ago

Looks like the error could come from #124 as we also use pre-commit hook in my company