kokoro: avoid git permissions issue that GN fails on

In the docker build script that Kokoro runs, the directories
are owned by a different user.  Git complains about that and in the GN
flow GN will error out.
In this docker flow we don't care about that warning, so within
the docker config set a git global option to ignore the issue.
This commit is contained in:
David Neto 2023-02-02 13:20:28 -05:00 committed by kd-11
parent 9dec5d66ce
commit 579686849b

View File

@ -36,6 +36,10 @@
set -e # Fail on any error.
set -x # Display commands being run.
# Disable git's "detected dubious ownership" error - kokoro checks out the repo
# with a different user, and we don't care about this warning.
git config --global --add safe.directory '*'
echo "Fetching external projects..."
./update_glslang_sources.py