commit | 027ac86e514dbb1000ae4ec5b282f39af4d2f7a3 | [log] [tgz] |
---|---|---|
author | Than McIntosh <thanm@google.com> | Thu Jan 14 11:02:42 2021 -0500 |
committer | Than McIntosh <thanm@google.com> | Fri Jan 15 16:51:21 2021 +0000 |
tree | c2c6736725e96b5824afd97b2085cda327394445 | |
parent | b8a6970a0e71c91d2cbed7d3a77142e2202f87a0 [diff] |
git-codereview: fix buglet in 'reword' related to work trees The reword command was trying to store a saved messages file in the subdirectory .git in the repo root; this doesn't work well if multiple work trees are in use and the user is working in a non-main work tree. Use "git rev-parse --git-path ." instead of "git rev-parse --show-top-level" to find the location for the saved messages file. Fixes golang/go#43695. Change-Id: Ie0b3e810ad585fe1c18805f4070736335a2ef2b5 Reviewed-on: https://go-review.googlesource.com/c/review/+/283646 Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org> Trust: Than McIntosh <thanm@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.