]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: set up git identity for build_buildvcs_auto.txt
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 5 Jul 2022 15:14:22 +0000 (16:14 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 6 Jul 2022 17:17:08 +0000 (17:17 +0000)
Just like in other tests like get_dotfiles.txt or
version_buildvcs_git.txt. Without it, I get a failure on my machine:

fatal: empty ident name (for <mvdan@p14s.localdomain>) not allowed

Change-Id: I1c17c0d58c539b59154570b5438c7bd850bac5aa
Reviewed-on: https://go-review.googlesource.com/c/go/+/416095
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/go/testdata/script/build_buildvcs_auto.txt

index 9eac5680459870c09d44d004f78d3dce49e684b1..dd9eef5f8289e52eb64ebf132a0291f0db45623a 100644 (file)
@@ -6,11 +6,15 @@
 
 cd sub
 exec git init .
+exec git config user.name 'Nameless Gopher'
+exec git config user.email 'nobody@golang.org'
 exec git add sub.go
 exec git commit -m 'initial state'
 cd ..
 
 exec git init
+exec git config user.name 'Nameless Gopher'
+exec git config user.email 'nobody@golang.org'
 exec git submodule add ./sub
 exec git add go.mod example.go
 exec git commit -m 'initial state'