Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH] git-r3.eclass: Explicitly disable password prompts
Date: Thu, 28 Nov 2019 20:11:51
Message-Id: 20191128201118.218687-1-mgorny@gentoo.org
Closes: https://bugs.gentoo.org/701276
Signed-off-by: Michał Górny <mgorny@g.o>
---
 eclass/git-r3.eclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass
index b1c7f7f43abc..e0d2bbb5edc0 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
-- 
2.24.0