about summary refs log tree commit diff
diff options
context:
space:
mode:
-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