bzr commit error because of no identity (should look at /etc/mailname)
Bug #616878 reported by
LaMont Jones
This bug affects 9 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Martin Pool | ||
2.3 |
Fix Released
|
Undecided
|
Martin Pool | ||
bzr (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Natty |
Fix Released
|
High
|
Jelmer Vernooij |
Bug Description
% sudo apt-get dist-upgrade <-- installing bzr 2.2.0-1
...
% bzr commit
bzr: ERROR: Unable to determine your name.
Please, set your name with the 'whoami' command.
E.g. bzr whoami "Your Name <email address hidden>"
This should, at worst, be a warning. Or there should be a trivial way to cause it to be. If the user wants to be anonymous-ish, he should be allowed to be.
Related branches
lp:~mbp/bzr/whoami
- Vincent Ladeuil: Needs Fixing
-
Diff: 180 lines (+115/-5)3 files modifiedbzrlib/config.py (+86/-5)
bzrlib/tests/test_config.py (+23/-0)
doc/en/release-notes/bzr-2.3.txt (+6/-0)
tags: | added: affects-canonical |
Changed in bzr (Ubuntu): | |
status: | New → Confirmed |
tags: | added: whoami |
Changed in bzr: | |
assignee: | nobody → bazaar-core-staff (bazaar-core-staff) |
importance: | Medium → High |
Changed in bzr: | |
assignee: | Registry Administrators (registry) → Curtis Hovey (sinzui) |
assignee: | Curtis Hovey (sinzui) → nobody |
Changed in bzr: | |
assignee: | nobody → canonical-bazaar (canonical-bazaar) |
Changed in bzr: | |
status: | Confirmed → In Progress |
assignee: | canonical-bazaar (canonical-bazaar) → Martin Pool (mbp) |
Changed in bzr (Ubuntu): | |
milestone: | none → maverick-updates |
Changed in bzr (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in bzr: | |
status: | In Progress → Fix Released |
summary: |
- bzr commit error because of no identity + bzr commit error because of no identity (should look at /etc/mailname) |
Changed in bzr (Ubuntu): | |
status: | In Progress → Fix Released |
milestone: | maverick-updates → none |
Changed in bzr (Ubuntu Natty): | |
status: | New → In Progress |
Changed in bzr (Ubuntu Natty): | |
assignee: | nobody → Jelmer Vernooij (jelmer) |
importance: | Undecided → High |
Changed in bzr: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
Some users ended up doing commits with a committer email / hostname set that was invalid or private. See bug 549310.
Other than running "bzr whoami", it should be possible to prevent this error by setting the EMAIL or BZR_EMAIL environment variables. bzr doesn't really care about whether those values are set to a valid email address, just that they are set.