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 d60221f7a [mesos-build] Add correct directory to git safe directory.
d60221f7a is described below
commit d60221f7acfa84e26662728108fc8854bb14b7f1
Author: Jason Zhou <[email protected]>
AuthorDate: Wed Jun 5 12:55:36 2024 -0400
[mesos-build] Add correct directory to git safe directory.
Previously, the entrypoint.sh added /SRC/.git as a safe directory
after the git clone, which was not useful. We now add it /SRC/ as
a safe directory before the git clone.
Review: https://reviews.apache.org/r/75029/
---
support/mesos-build/entrypoint.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/support/mesos-build/entrypoint.sh
b/support/mesos-build/entrypoint.sh
index 2e1e26130..38f697e66 100755
--- a/support/mesos-build/entrypoint.sh
+++ b/support/mesos-build/entrypoint.sh
@@ -21,9 +21,13 @@ set -o pipefail
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
+
# Prepare sources
git clone --depth 1 file:///SRC "${SRCDIR}"
-git config --global --add safe.directory /SRC/.git
cd "${SRCDIR}"