Skip to content

Commit 5a8bd45

Browse files
committed
Merge bitcoin/bitcoin#27423: ci: fix git dubious permissions error
ed4a833 ci: fix git dubious permissions error (josibake) Pull request description: fixes bitcoin/bitcoin#27376 (comment) this appears to be caused by a more recent version of git being sensitive to mismatched permissions on directories. we didn't notice this before because we were using two separate user accounts to fix up dir permissions in the container , but the second account was removed in #27376 there might be a more elegant way to do this, but this does the trick and seems to be the way others are fixing this issue around the internets. ACKs for top commit: RandyMcMillan: ACK ed4a833 hebasto: re-ACK ed4a833 Tree-SHA512: dad467deca101a24f3ed34b3e26a1db5099a5bd5c3e9c9a22771c59848f7d7e7843c7386348e6fdf86d5a556e4706e5e20005d7a6637193e1c8aef7a5ff7fb19
2 parents 06fb95b + ed4a833 commit 5a8bd45

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
@@ -57,6 +57,9 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
5757
export CI_EXEC_CMD_PREFIX="docker exec ${CI_CONTAINER_ID}"
5858
$CI_EXEC_CMD_PREFIX rsync --archive --stats --human-readable /ci_base_install/ "${BASE_ROOT_DIR}"
5959
$CI_EXEC_CMD_PREFIX rsync --archive --stats --human-readable /ro_base/ "$BASE_ROOT_DIR"
60+
# Fixes permission issues when there is a container UID/GID mismatch with the owner
61+
# of the mounted bitcoin src dir.
62+
$CI_EXEC_CMD_PREFIX git config --global --add safe.directory "*"
6063
else
6164
echo "Running on host system without docker wrapper"
6265
"${BASE_ROOT_DIR}/ci/test/01_base_install.sh"

0 commit comments

Comments
 (0)