-
-
Notifications
You must be signed in to change notification settings - Fork 301
Closed
Labels
Description
Description
If users did not set their email, we'll not be able to run bump and changelog generation due to
Line 86 in ff2f56c
| rev, title, author, author_email, *body_list = rev_and_commit.split("\n") |
Steps to reproduce
- git commit with no email (Ref: https://stackoverflow.com/questions/7372970/git-commit-with-no-email)
- Run
cz bumporcz changelog
Current behavior
raises the following error
Traceback (most recent call last):
File "....local/bin/cz", line 8, in <module>
sys.exit(main())
File "....local/pipx/venvs/commitizen/lib/python3.8/site-packages/commitizen/cli.py", line 295, in main
args.func(conf, vars(args))()
File "....local/pipx/venvs/commitizen/lib/python3.8/site-packages/commitizen/commands/bump.py", line 109, in __call__
commits = git.get_commits()
File "....local/pipx/venvs/commitizen/lib/python3.8/site-packages/commitizen/git.py", line 86, in get_commits
rev, title, author, author_email, *body_list = rev_and_commit.split("\n")
ValueError: not enough values to unpack (expected at least 4, got 3)
Desired behavior
Proceeded without error
Environment
- commitizen version: 2.14.0
- python version: Python 3.8.3
- operating system: Darwin