Skip to content

Commit 6457b1c

Browse files
committed
Revert "Add git safe directory as root when running packaging tests (#86812) (#86819)"
This reverts commit 9ffe08b.
1 parent 41e6d4f commit 6457b1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/scripts/packaging-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ sudo mkdir -p /elasticsearch/qa/ && sudo chown jenkins /elasticsearch/qa/ && ln
6060

6161
# Ensure since we're running as root that we can do git operations in this directory
6262
# See: https://git-scm.com/docs/git-config/2.35.2#Documentation/git-config.txt-safedirectory
63-
sudo git config --global --add safe.directory $WORKSPACE
63+
git config --global --add safe.directory $WORKSPACE
6464

6565
# 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
6666
# run with --continue to run both bats and java tests even if one fails

0 commit comments

Comments
 (0)