From a1ca197bc99c2d5c2977630cc4c9dbfd5461d9c1 Mon Sep 17 00:00:00 2001 From: Tasos Sahanidis Date: Fri, 15 Mar 2024 16:45:02 +0200 Subject: src/makechrootpkg: Ensure git doesn't ask for credentials --- src/makechrootpkg.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/makechrootpkg.in b/src/makechrootpkg.in index 70eba3c..44b991b 100644 --- a/src/makechrootpkg.in +++ b/src/makechrootpkg.in @@ -228,7 +228,7 @@ _chrootbuild() { sudo --preserve-env=SOURCE_DATE_EPOCH \ --preserve-env=BUILDTOOL \ --preserve-env=BUILDTOOLVER \ - -iu builduser bash -c 'cd /startdir; CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse makepkg "$@"' -bash "$@" + -iu builduser bash -c 'cd /startdir; GIT_TERMINAL_PROMPT=0 CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse makepkg "$@"' -bash "$@" ret=$? case $ret in 0|14) @@ -256,7 +256,7 @@ download_sources() { # Ensure sources are downloaded sudo -u "$makepkg_user" --preserve-env=GNUPGHOME,SSH_AUTH_SOCK \ env SRCDEST="$SRCDEST" BUILDDIR="$WORKDIR" \ - makepkg --config="$copydir/etc/makepkg.conf" --verifysource -o "${verifysource_args[@]}" || + GIT_TERMINAL_PROMPT=0 makepkg --config="$copydir/etc/makepkg.conf" --verifysource -o "${verifysource_args[@]}" || die "Could not download sources." } -- cgit v1.2.3-70-g09d2