aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorjosibake <josibake@protonmail.com>2023-04-05 13:25:19 +0200
committerjosibake <josibake@protonmail.com>2023-04-05 14:25:13 +0200
commited4a8339b8fe796b4668e206d7fb9c2b120f8eb2 (patch)
tree71e8d2c8919dfb5bdfceec338bcb08d96faa1fc3 /ci
parent49b87bfe7e2799d25ce709123ecafa872b36e87a (diff)
ci: fix git dubious permissions error
Diffstat (limited to 'ci')
-rwxr-xr-xci/test/04_install.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/ci/test/04_install.sh b/ci/test/04_install.sh
index 68526fbf66..22045c4d1f 100755
--- a/ci/test/04_install.sh
+++ b/ci/test/04_install.sh
@@ -57,6 +57,9 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
export CI_EXEC_CMD_PREFIX="docker exec ${CI_CONTAINER_ID}"
$CI_EXEC_CMD_PREFIX rsync --archive --stats --human-readable /ci_base_install/ "${BASE_ROOT_DIR}"
$CI_EXEC_CMD_PREFIX rsync --archive --stats --human-readable /ro_base/ "$BASE_ROOT_DIR"
+ # Fixes permission issues when there is a container UID/GID mismatch with the owner
+ # of the mounted bitcoin src dir.
+ $CI_EXEC_CMD_PREFIX git config --global --add safe.directory "*"
else
echo "Running on host system without docker wrapper"
"${BASE_ROOT_DIR}/ci/test/01_base_install.sh"