commit:     f981af79945e28a40dab2b5196329f7835afe78b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 28 13:33:36 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Dec  7 14:36:24 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f981af79

git-r3.eclass: Explicitly disable password prompts

Closes: https://bugs.gentoo.org/701276
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/git-r3.eclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass
index b1c7f7f43ab..e0d2bbb5edc 100644
--- a/eclass/git-r3.eclass
+++ b/eclass/git-r3.eclass
@@ -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

Reply via email to