However, how to update settings for multiple projects in batch? Such
as set 'Require Change-Id in commit message' and 'Fast Forward only'
merge strategy for all projects?
For Gerrit 2.1, update the database with a suitable SQL update query.
For Gerrit 2.2, fetch the refs/meta/config branch of each repository,
update the configuration file (preferable with "git config") and push
it back.
It seems like these configuration values aren't set in project.config
by default, but an easy way to check what you need to do is of course
to make the configuration change for a single project and see what
Gerrit did for you. Then, repeat that action for the rest of the gits
(easily automated).
To set the two configuration values you're talking about I think the
following will work (once you have checked out refs/meta/config):
git config --file project.config receive.requireChangeId true
git config --file project.config submit.action FAST_FORWARD_ONLY
--
Magnus Bäck Opinions are my own and do not necessarily
SW Configuration Manager represent the ones of my employer, etc.
Sony Ericsson
Thanks, it should be
git config --file project.config receive.requireChangeId true
git config --file project.config submit.action "fast forward only"