git-r3.eclass: Explicitly disable password prompts
authorMichał Górny <mgorny@gentoo.org>
Thu, 28 Nov 2019 13:33:36 +0000 (14:33 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 7 Dec 2019 14:36:24 +0000 (15:36 +0100)
Closes: https://bugs.gentoo.org/701276
Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/git-r3.eclass

index b1c7f7f43abc1f02ceef317204fb65fb7c532b92..e0d2bbb5edc03d1582787b97e7fc61133eceefaa 100644 (file)
@@ -556,6 +556,9 @@ _git-r3_is_local_repo() {
 git-r3_fetch() {
        debug-print-function ${FUNCNAME} "$@"
 
+       # disable password prompts, https://bugs.gentoo.org/701276
+       local -x GIT_TERMINAL_PROMPT=0
+
        # process repos first since we create repo_name from it
        local repos
        if [[ ${1} ]]; then