This is an automated email from the ASF dual-hosted git repository.
bmahler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
The following commit(s) were added to refs/heads/master by this push:
new ca025fbd8 [mesos-build] Add .git directory to safe directory.
ca025fbd8 is described below
commit ca025fbd8136247f6a125d8f938a4642c69ce756
Author: Jason Zhou <[email protected]>
AuthorDate: Wed Jun 5 19:28:13 2024 -0400
[mesos-build] Add .git directory to safe directory.
Review: https://reviews.apache.org/r/75031/
---
support/mesos-build/entrypoint.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/support/mesos-build/entrypoint.sh
b/support/mesos-build/entrypoint.sh
index aafaaba3e..38c6f5644 100755
--- a/support/mesos-build/entrypoint.sh
+++ b/support/mesos-build/entrypoint.sh
@@ -16,6 +16,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+set -x
set -e
set -o pipefail
@@ -24,7 +25,7 @@ SRCDIR=/tmp/SRC
# NOTE: Higher ubuntu versions seem to give the following warning:
# "detected dubious ownership in repository at '/SRC/.git'"
# we will add an exception for this directory.
-git config --global --add safe.directory /SRC
+git config --global --add safe.directory /SRC/.git
# Prepare sources
git clone --depth 1 file:///SRC "${SRCDIR}"