Skip to content

Commit 3b48d8f

Browse files
authored
Fix BWC checkouts when running packaging tests (#86767) (#86772)
1 parent c51abc6 commit 3b48d8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.ci/scripts/packaging-test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ sudo chmod 0440 /etc/sudoers.d/elasticsearch_vars
5858
sudo rm -Rf /elasticsearch
5959
sudo mkdir -p /elasticsearch/qa/ && sudo chown jenkins /elasticsearch/qa/ && ln -s $PWD/qa/vagrant /elasticsearch/qa/
6060

61+
# Ensure since we're running as root that we can do git operations in this directory
62+
# See: https://git-scm.com/docs/git-config/2.35.2#Documentation/git-config.txt-safedirectory
63+
git config --global --add safe.directory $WORKSPACE
64+
6165
# sudo sets it's own PATH thus we use env to override that and call sudo annother time so we keep the secure root PATH
6266
# run with --continue to run both bats and java tests even if one fails
6367
# be explicit about Gradle home dir so we use the same even with sudo

0 commit comments

Comments
 (0)