commit | 28abaf57728215cca0c42bf4ef3291109c9e271a | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Tue Jan 26 13:52:43 2021 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Wed Jan 27 23:04:16 2021 +0000 |
tree | f14889374832ae477429c6a57aa049ee53c81dde | |
parent | 027ac86e514dbb1000ae4ec5b282f39af4d2f7a3 [diff] |
git-codereview: avoid race in loadGerritOrigin Use a mutex in loadGerritOrigin to avoid race when called in parallel by "git coderevew pending". Add a new initialized field so that the code knows when auth has been initialized. Adjust tests accordingly. The test is simply "go test -race". Fixes golang/go#43670 Change-Id: Ifb060fca6ed463f1d11a2959d03fca5e14e238c6 Reviewed-on: https://go-review.googlesource.com/c/review/+/287012 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
The git-codereview tool is a command-line tool for working with Gerrit.
The easiest way to install is to run go get -u golang.org/x/review/git-codereview
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/review
.
Run git codereview hooks
to install Gerrit hooks for your git repository.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the review repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/review:” in the subject line, so it is easy to find.