Current versions of Gerrit don't permit the username to be modified once set.
> So how do I change my Username?
You can't.
> Also, how would I close my account if I wanted to close it in the
> future?
You can't. There currently is a way to delete an account, as it might
invalidate prior code reviews that the account was involved in. (And
we also didn't get to it, we've had more interesting issues to address
than trying to delete a user account.)
Its intentional. Older versions supported changing the username. We
deleted that code and disabled the renaming support.
The reason is, Gerrit now supports per-user branch names. A project
owner may setup an access rule such as:
refs/dev/${username}/* Push +3
Allowing a user to push any branch they choose, so long as its
prefixed with their current username. If we allowed changing
usernames, we also need to change all of the references that the user
may have already created. That gets very ugly to code. It may also
confuse the user later when he tries to push again, his old push
configuration on the client may no longer work because the branch
namespace changed when his username changed. And his URLs also need
to change. Etc.
So to simplify the server code, we just disallowed username changes.
Once the name is chosen, its set.
What are the options for people who'd like to use an email address
that doesn't match their ssh username?
JBQ
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.
Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.
Set the Gerrit username in ~/.gitconfig:
$ repo help upload
Summary
-------
Upload changes for code review
...
Configuration
-------------
...
review.URL.username:
Override the username used to connect to Gerrit Code Review. By default
the local part of the email address is used.
The URL must match the review URL listed in the manifest XML file, or in
the .git/config within the project. For example:
[remote "origin"]
url = git://git.example.com/project.git
review = http://review.example.com/
[review "http://review.example.com/"]
autoupload = true
autocopy = joh...@company.com,my-tea...@company.com
So I can do:
git config --global review.review.source.android.com.username MYNAME
JBQ
--