Skip to content

Commit 4c4eb39

Browse files
committed
Add workaround for git dubious ownership issue
1 parent f2e7d79 commit 4c4eb39

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ci/docker/host-x86_64/riscv64gc-gnu/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ RUN rm -rf /tmp/riscv-pk
8888
COPY scripts/sccache.sh /scripts/
8989
RUN sh /scripts/sccache.sh
9090

91+
# Avoid "fatal: detected dubious ownership in repository at '/checkout'" error
92+
RUN git config --global --add safe.directory /checkout
93+
9194
ENV RUST_CONFIGURE_ARGS --qemu-riscv64-rootfs=/tmp/rootfs
9295
ENV SCRIPT python3 ../x.py --stage 2 test --host='' --target riscv64gc-unknown-linux-gnu
9396

0 commit comments

Comments
 (0)