about summary refs log tree commit diff
path: root/src/ci/docker
diff options
context:
space:
mode:
authorAna Hobden <operator@hoverbear.org>2024-05-31 07:46:24 -0700
committerAna Hobden <operator@hoverbear.org>2024-06-10 12:06:54 -0700
commit4c4eb39bc50230f5d50f451f323cfef2e70962d6 (patch)
tree347972f358a519f05fbfea708b4800091602c373 /src/ci/docker
parentf2e7d79e0c7f3f20032b4c8755e949787abe695f (diff)
downloadrust-4c4eb39bc50230f5d50f451f323cfef2e70962d6.tar.gz
rust-4c4eb39bc50230f5d50f451f323cfef2e70962d6.zip
Add workaround for git dubious ownership issue
Diffstat (limited to 'src/ci/docker')
-rw-r--r--src/ci/docker/host-x86_64/riscv64gc-gnu/Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ci/docker/host-x86_64/riscv64gc-gnu/Dockerfile b/src/ci/docker/host-x86_64/riscv64gc-gnu/Dockerfile
index bc7f8c30673..a9ffa5918b5 100644
--- a/src/ci/docker/host-x86_64/riscv64gc-gnu/Dockerfile
+++ b/src/ci/docker/host-x86_64/riscv64gc-gnu/Dockerfile
@@ -88,6 +88,9 @@ RUN rm -rf /tmp/riscv-pk
 COPY scripts/sccache.sh /scripts/
 RUN sh /scripts/sccache.sh
 
+# Avoid "fatal: detected dubious ownership in repository at '/checkout'" error
+RUN git config --global --add safe.directory /checkout
+
 ENV RUST_CONFIGURE_ARGS --qemu-riscv64-rootfs=/tmp/rootfs
 ENV SCRIPT python3 ../x.py --stage 2 test --host='' --target riscv64gc-unknown-linux-gnu