From: Tobias Brunner Date: Tue, 27 Jun 2023 16:41:42 +0000 (+0200) Subject: testing: Whitelist all Git repositories in the root image X-Git-Tag: android-2.4.2~22^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=744955f8ce418e62c374da0695d43c52a9368d32;p=thirdparty%2Fstrongswan.git testing: Whitelist all Git repositories in the root image Without this, Git refuses to operate on the build dirs that are mounted with weird ownership. When running as root in the chroot, Git checks SUDO_UID, which won't match. --- diff --git a/testing/scripts/build-strongswan b/testing/scripts/build-strongswan index f7eeb6fede..1956e132d4 100755 --- a/testing/scripts/build-strongswan +++ b/testing/scripts/build-strongswan @@ -165,6 +165,10 @@ if [ "$ALL_RECIPES" ]; then execute "cp -r $RECPDIR/patches $LOOPDIR/root/shared/compile" 0 fi RECIPES=`ls $RECPDIR/*.mk | xargs -n1 basename` + log_action "Whitelist all Git repositories" + echo "[safe]" > $LOOPDIR/root/.gitconfig + echo " directory = *" >> $LOOPDIR/root/.gitconfig + log_status 0 else echo "Building and installing strongSwan" RECIPES=`ls $RECPDIR/*strongswan.mk | xargs -n1 basename`