]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix formatting of file paths under cwd
authormotemen <motemen@gmail.com>
Mon, 26 Feb 2018 18:22:46 +0000 (18:22 +0000)
committerIan Lance Taylor <iant@golang.org>
Mon, 26 Feb 2018 19:42:47 +0000 (19:42 +0000)
commitfd5bf0393eb7b3a21b55adf2c0f1e293b24cf308
treef4ffa191f832718c6c952fc8fb96a4f258df8440
parenta5c987fcbb95db82ee2101a46503bc21bea1f2d9
cmd/go: fix formatting of file paths under cwd

The output of go with -x flag is formatted in a manner that file paths
under current directory are modified to start with a dot (.), but when
the directory path ends with a slash (/), the formatting goes wrong.

Fixes #23982

Change-Id: I8f8d15dd52bee882a9c6357eb9eabdc3eaa887c3
GitHub-Last-Rev: 1493f38bafdf2c40f16392b794fd1a12eb12a151
GitHub-Pull-Request: golang/go#23985
Reviewed-on: https://go-review.googlesource.com/95755
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/work/exec.go