DESCRIPTION

The Chromium depot_tools(7) suite contains many tools which may need to authenticate to Gerrit.

Gerrit uses OAuth for authentication. Usually, the OAuth is handled by git-credential-luci. You need to login once with git-credential-luci, and then it will provide access tokens for Gerrit authentication.

depot_tools uses git-credential-luci to authenticate Gerrit API calls.

GIT CONFIGURATION

You need to configure Git to authenticate to Gerrit. While depot_tools can help set up the necessary configuration, you can do it manually.

You need to add the following lines to your Git config:

[credential "https://chromium.googlesource.com"]
helper =
helper = luci

The empty value is needed to reset the helper list to prevent conflicts. You should copy this for each Gerrit host you need.

For Googlers, see go/chrome-gerrit-auth.

CHROMIUM DEPOT_TOOLS

Part of the chromium depot_tools(7) suite. These tools are meant to assist with the development of chromium and related projects. Download the tools by checking out the git repository.