diff options
| author | Filippo Valsorda <filippo@golang.org> | 2021-02-08 00:09:37 +0100 |
|---|---|---|
| committer | Filippo Valsorda <filippo@golang.org> | 2021-02-12 15:00:19 +0000 |
| commit | 08a7ebc305a96ca08b97b7de260c02543eeca323 (patch) | |
| tree | ca20560deacf99714ba148dfea0d0f766e34c5d5 | |
| parent | 28abaf57728215cca0c42bf4ef3291109c9e271a (diff) | |
| download | go-x-review-08a7ebc305a96ca08b97b7de260c02543eeca323.tar.xz | |
git-codereview: fix runDirErr to actually use the passed directory
Change-Id: I39f16f70e928999674b4f6f60c505ca0a51c46a9
Reviewed-on: https://go-review.googlesource.com/c/review/+/290211
Trust: Filippo Valsorda <filippo@golang.org>
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
| -rw-r--r-- | git-codereview/review.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/git-codereview/review.go b/git-codereview/review.go index 6dcb6a0..1e79114 100644 --- a/git-codereview/review.go +++ b/git-codereview/review.go @@ -170,7 +170,7 @@ func run(command string, args ...string) { } func runErr(command string, args ...string) error { - return runDirErr("", command, args...) + return runDirErr(".", command, args...) } var runLogTrap []string @@ -194,6 +194,9 @@ func runDirErr(dir, command string, args ...string) error { cmd.Stdin = os.Stdin cmd.Stdout = stdout() cmd.Stderr = stderr() + if dir != "." { + cmd.Dir = dir + } setEnglishLocale(cmd) return cmd.Run() } |
