This commit is contained in:
Copilot 2026-01-03 06:56:10 +00:00 committed by GitHub
commit 6d8dd78694
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -258,8 +258,16 @@ git_clone_scripts() {
set_proxy "$proxy" set_proxy "$proxy"
# Set TMPDIR to /tmp to avoid "unable to get random bytes" error in some Docker environments
local original_tmpdir="${TMPDIR:-}"
export TMPDIR=/tmp
git clone -q --depth=1 $part_cmd $url $dir git clone -q --depth=1 $part_cmd $url $dir
exit_status=$? exit_status=$?
if [[ -n "$original_tmpdir" ]]; then
export TMPDIR="$original_tmpdir"
else
unset TMPDIR
fi
unset_proxy unset_proxy
} }