diff options
author | Tasos Sahanidis <tasos@tasossah.com> | 2024-03-15 16:45:02 +0200 |
---|---|---|
committer | Tasos Sahanidis <tasos@tasossah.com> | 2024-03-15 16:45:02 +0200 |
commit | a1ca197bc99c2d5c2977630cc4c9dbfd5461d9c1 (patch) | |
tree | c85cc952485be4b776ed25ed03fb6bfd3595e746 /src/makechrootpkg.in | |
parent | 5d63dda662fe4ac5f6b0bf176f4a978c5bbc7a9a (diff) | |
download | devtools-a1ca197bc99c2d5c2977630cc4c9dbfd5461d9c1.tar.xz |
src/makechrootpkg: Ensure git doesn't ask for credentials
Diffstat (limited to 'src/makechrootpkg.in')
-rw-r--r-- | src/makechrootpkg.in | 4 |
1 files 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." } |