external_patch_test: set user name/email
...for git does not allow generating a commit otherwise,
at least some versions.
Change-Id: Id584999816ecff6954118811e4f753e618b50194
PiperOrigin-RevId: 187316142
diff --git a/src/test/shell/bazel/external_patching_test.sh b/src/test/shell/bazel/external_patching_test.sh
index 5f13d53..fe5d4f2 100755
--- a/src/test/shell/bazel/external_patching_test.sh
+++ b/src/test/shell/bazel/external_patching_test.sh
@@ -230,7 +230,9 @@
export GIT_CONFIG_NOSYSTEM=YES
mkdir withbuild
- (cd withbuild && git init)
+ (cd withbuild && git init \
+ && git config user.email 'me@example.com' \
+ && git config user.name 'E X Ample' )
cat > withbuild/BUILD.bazel <<'EOF'
genrule(
name="target",
@@ -292,7 +294,9 @@
export GIT_CONFIG_NOSYSTEM=YES
mkdir withbuild
- (cd withbuild && git init)
+ (cd withbuild && git init \
+ && git config user.email 'me@example.com' \
+ && git config user.name 'E X Ample' )
cat > withbuild/BUILD.bazel <<'EOF'
genrule(
name="target",