From f2d94473a84232e4a2d7aa7e8f25975718ab4770 Mon Sep 17 00:00:00 2001 From: Amy Wu Date: Mon, 14 Sep 2026 10:59:05 -0700 Subject: [PATCH] chore: Mark the checkout safe before git runs in the agentplatform release PiperOrigin-RevId: 981243301 --- .kokoro/release/agentplatform.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.kokoro/release/agentplatform.sh b/.kokoro/release/agentplatform.sh index 40b35b5f95..6a06cfee63 100755 --- a/.kokoro/release/agentplatform.sh +++ b/.kokoro/release/agentplatform.sh @@ -38,6 +38,9 @@ readonly SOURCE_TREE="agentplatform" function checkout_release_tag() { cd "${REPO_DIR}" + # The checkout is owned by a different uid than the build process, which git + # refuses to operate on until the path is marked safe. + git config --global --add safe.directory "${REPO_DIR}" if [[ -n "${_LOUHI_TAG_NAME:-}" ]]; then echo "Tag trigger detected; checking out ${_LOUHI_TAG_NAME}" git fetch --tags origin || true