Skip to content

Commit c9ffe01

Browse files
Merge bitcoin#27423: ci: fix git dubious permissions error
Co-authored-by: fanquake <fanquake@gmail.com>
1 parent d4b420f commit c9ffe01

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ci/test/04_install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
6161
docker exec "$DOCKER_ID" chown -R "$LOCAL_USER":"$LOCAL_USER" "${BASE_ROOT_DIR}"
6262
export DOCKER_CI_CMD_PREFIX_ROOT="docker exec -u 0 $DOCKER_ID"
6363
export DOCKER_CI_CMD_PREFIX="docker exec -u $LOCAL_UID $DOCKER_ID"
64+
# Fixes permission issues when there is a container UID/GID mismatch with the owner
65+
# of the mounted dash src dir.
66+
$DOCKER_CI_CMD_PREFIX_ROOT git config --global --add safe.directory "*"
6467
else
6568
echo "Running on host system without docker wrapper"
6669
fi

0 commit comments

Comments
 (0)