From: Jan Kiszka <[email protected]> We are not running git interactively, so prevent that is tries to ask for credentials when there is not chance to provide them.
Suggested-by: Jörg Sommer <[email protected]> Signed-off-by: Jan Kiszka <[email protected]> --- kas/libcmds.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kas/libcmds.py b/kas/libcmds.py index 1758b9b..c938b68 100644 --- a/kas/libcmds.py +++ b/kas/libcmds.py @@ -318,7 +318,7 @@ class SetupHome(Command): config.add_value(section, 'insteadOf', f'ssh://git@{ci_ssh_host}:{ci_ssh_port}/') - def _setup_gitconfig(self): + def _setup_gitconfig(self, ctx): gitconfig_host = self._path_from_env('GITCONFIG_FILE') gitconfig_kas = self.tmpdirname + '/.gitconfig' @@ -355,6 +355,8 @@ class SetupHome(Command): self._setup_gitlab_ci_ssh_rewrite(config) config.write() + ctx.environ['GIT_TERMINAL_PROMPT'] = 'false' + def execute(self, ctx): managed_env = get_context().managed_env if managed_env: @@ -365,7 +367,7 @@ class SetupHome(Command): self._setup_netrc() self._setup_npmrc() self._setup_registry_auth() - self._setup_gitconfig() + self._setup_gitconfig(ctx) self._setup_aws_creds() os.umask(def_umask) -- 2.51.0 -- You received this message because you are subscribed to the Google Groups "kas-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/kas-devel/3c613ee6-b2b6-4b29-9662-c5904b5e57ae%40siemens.com.
