From 53947bab5933ba57d3169e844654819415cac95a Mon Sep 17 00:00:00 2001 From: Emily Bourne Date: Fri, 18 Oct 2024 16:11:12 +0200 Subject: [PATCH] Merge branch 'ebourne_public_mirror_fix' into 'main' Add safe directory See merge request gysela-developpers/gyselalibxx!734 -------------------------------------------- --- bin/public_mirror | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/public_mirror b/bin/public_mirror index 4562a728b..e1333508a 100755 --- a/bin/public_mirror +++ b/bin/public_mirror @@ -55,7 +55,10 @@ for commit_to_copy in ${commits_to_choose} do cd ${SRC_DIR} git checkout ${commit_to_copy} -f - git config --global --add safe.directory "${SRC_DIR}/vendor" + git config -f .gitmodules --get-regexp '^submodule\..*\.path$' | while read path_key path_val + do + git config --global --add safe.directory "${SRC_DIR}/${path_val}" + done git submodule update --init -f git clean -fd deleted_submodules=$(git ls-files --others --exclude-standard)