mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-03 00:00:24 -04:00
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.
This commit is contained in:
parent
e0f0f812c7
commit
744955f8ce
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user