Skip to content

Commit

Permalink
Merge pull request #1962 from blacklanternsecurity/fix-git-bug
Browse files Browse the repository at this point in the history
Use minimal git config
  • Loading branch information
TheTechromancer authored Nov 18, 2024
2 parents e3e321a + 752f3f8 commit 83f8e10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bbot/core/helpers/depsinstaller/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit 83f8e10

Please sign in to comment.