Skip to content

Commit 74b9607

Browse files
committed
Revert "Add git safe directory as root when running packaging tests (#86812) (#86818)"
This reverts commit 5a45a88.
1 parent a3fdbf7 commit 74b9607

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)