mirror of https://github.com/golang/go.git
cmd/go: set user and email in test-local git repos
Some of the builders cannot infer user and email from the builder hostname. Change-Id: I27e5d011fa1471f27763b6b7fa1bf59e418b925c Reviewed-on: https://team-review.git.corp.google.com/c/376739 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-on: https://go-review.googlesource.com/c/154107 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
c802904127
commit
84b408cd36
|
|
@ -3,11 +3,15 @@
|
||||||
# Set up some empty repositories.
|
# Set up some empty repositories.
|
||||||
cd $WORK/_origin/foo
|
cd $WORK/_origin/foo
|
||||||
exec git init
|
exec git init
|
||||||
|
exec git config user.name 'Nameless Gopher'
|
||||||
|
exec git config user.email 'nobody@golang.org'
|
||||||
exec git commit --allow-empty -m 'create master branch'
|
exec git commit --allow-empty -m 'create master branch'
|
||||||
|
|
||||||
cd $WORK
|
cd $WORK
|
||||||
cd '_origin/{confusing}'
|
cd '_origin/{confusing}'
|
||||||
exec git init
|
exec git init
|
||||||
|
exec git config user.name 'Nameless Gopher'
|
||||||
|
exec git config user.email 'nobody@golang.org'
|
||||||
exec git commit --allow-empty -m 'create master branch'
|
exec git commit --allow-empty -m 'create master branch'
|
||||||
|
|
||||||
# Clone the empty repositories into GOPATH.
|
# Clone the empty repositories into GOPATH.
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,14 @@
|
||||||
# Set up a benign repository and a repository with a dotfile name.
|
# Set up a benign repository and a repository with a dotfile name.
|
||||||
cd $WORK/_origin/foo
|
cd $WORK/_origin/foo
|
||||||
exec git init
|
exec git init
|
||||||
|
exec git config user.name 'Nameless Gopher'
|
||||||
|
exec git config user.email 'nobody@golang.org'
|
||||||
exec git commit --allow-empty -m 'create master branch'
|
exec git commit --allow-empty -m 'create master branch'
|
||||||
|
|
||||||
cd $WORK/_origin/.hidden
|
cd $WORK/_origin/.hidden
|
||||||
exec git init
|
exec git init
|
||||||
|
exec git config user.name 'Nameless Gopher'
|
||||||
|
exec git config user.email 'nobody@golang.org'
|
||||||
exec git commit --allow-empty -m 'create master branch'
|
exec git commit --allow-empty -m 'create master branch'
|
||||||
|
|
||||||
# Clone the empty repositories into GOPATH.
|
# Clone the empty repositories into GOPATH.
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,32 @@
|
||||||
[!exec:git] skip
|
[!exec:git] skip
|
||||||
|
|
||||||
|
# Construct a repository that imports a non-ASCII path.
|
||||||
cd $WORK/_origin/example.com/unicode
|
cd $WORK/_origin/example.com/unicode
|
||||||
exec git init
|
exec git init
|
||||||
|
exec git config user.name 'Nameless Gopher'
|
||||||
|
exec git config user.email 'nobody@golang.org'
|
||||||
exec git add unicode.go
|
exec git add unicode.go
|
||||||
exec git commit -m 'add unicode.go'
|
exec git commit -m 'add unicode.go'
|
||||||
|
|
||||||
|
# Clone the repo into GOPATH so that 'go get -u' can find it.
|
||||||
mkdir $GOPATH/src/example.com/unicode
|
mkdir $GOPATH/src/example.com/unicode
|
||||||
cd $GOPATH/src/example.com/unicode
|
cd $GOPATH/src/example.com/unicode
|
||||||
exec git clone $WORK/_origin/example.com/unicode .
|
exec git clone $WORK/_origin/example.com/unicode .
|
||||||
|
|
||||||
|
# Construct the imported repository.
|
||||||
cd $WORK/_origin/example.com/испытание
|
cd $WORK/_origin/example.com/испытание
|
||||||
exec git init
|
exec git init
|
||||||
|
exec git config user.name 'Nameless Gopher'
|
||||||
|
exec git config user.email 'nobody@golang.org'
|
||||||
exec git add испытание.go
|
exec git add испытание.go
|
||||||
exec git commit -m 'add испытание.go'
|
exec git commit -m 'add испытание.go'
|
||||||
|
|
||||||
|
# Clone that repo into GOPATH too.
|
||||||
mkdir $GOPATH/src/example.com/испытание
|
mkdir $GOPATH/src/example.com/испытание
|
||||||
cd $GOPATH/src/example.com/испытание
|
cd $GOPATH/src/example.com/испытание
|
||||||
exec git clone $WORK/_origin/example.com/испытание .
|
exec git clone $WORK/_origin/example.com/испытание .
|
||||||
|
|
||||||
|
# Upgrading the importer should pull from the non-ASCII repo.
|
||||||
cd $GOPATH
|
cd $GOPATH
|
||||||
go get -u example.com/unicode
|
go get -u example.com/unicode
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue