From 752f3f8e02e9b8a7dcaab9606800ba510bbf46f7 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 14 Nov 2024 17:44:52 -0500 Subject: [PATCH] minimal git config --- bbot/core/helpers/depsinstaller/installer.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bbot/core/helpers/depsinstaller/installer.py b/bbot/core/helpers/depsinstaller/installer.py index 652a10989..6316c9b68 100644 --- a/bbot/core/helpers/depsinstaller/installer.py +++ b/bbot/core/helpers/depsinstaller/installer.py @@ -44,6 +44,11 @@ def __init__(self, parent_helper): self.parent_helper.mkdir(self.command_status) self.setup_status = self.read_setup_status() + # make sure we're using a minimal git config + self.minimal_git_config = self.data_dir / "minimal_git.config" + self.minimal_git_config.touch() + os.environ["GIT_CONFIG_GLOBAL"] = str(self.minimal_git_config) + self.deps_behavior = self.parent_helper.config.get("deps_behavior", "abort_on_failure").lower() self.ansible_debug = self.core.logger.log_level <= logging.DEBUG self.venv = ""