Skip to content

B5: Add WBAB_GIT_CLONE_RECURSIVE env var to GitSourceManager #32

Description

@mark-e-deyoung

WinInspect uses git submodules. The current GitSourceManager.prepare_source() unconditionally runs git submodule update --init --recursive after checkout.

Change: Add WBAB_GIT_CLONE_RECURSIVE env var (default: 1) to control whether submodules are updated. Set to 0 to skip submodule init for repos that don't need them.

Scope:

  • core/scm.py: Check WBAB_GIT_CLONE_RECURSIVE in prepare_source()
  • docs/CONTRACTS.md: Document new env var
  • tests/unit/test_scm.py: Add test for recursive flag

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions