• 
      

    Add dependency checks for Git.

    Review Request #12548 — Created Aug. 18, 2022 and submitted

    Information

    RBTools
    release-4.x

    Reviewers

    This updates GitClient to add formal support for dependency checks.
    GitClient.check_dependencies() now determines if git or git.cmd
    (available on Windows) is installed.

    GitClient.get_local_path() now calls this instead of checking for
    dependencies itself, emitting a warning if dependencies haven't already
    been checked via setup() or has_dependencies(). The same is done
    with the GitClient.git property, which used to be an attribute.

    Unit tests have been updated to include new dependency-related tests. If
    a suitable git tool isn't installed, tests that depend on it will be
    automatically skipped.

    Unit tests pass on Python 3.7-3.11.

    Summary ID
    Add dependency checks for Git.
    This updates `GitClient` to add formal support for dependency checks. `GitClient.check_dependencies()` now determines if `git` or `git.cmd` (available on Windows) is installed. `GitClient.get_local_path()` now calls this instead of checking for dependencies itself, emitting a warning if dependencies haven't already been checked via `setup()` or `has_dependencies()`. The same is done with the `GitClient.git` property, which used to be an attribute. Unit tests have been updated to include new dependency-related tests. If a suitable `git` tool isn't installed, tests that depend on it will be automatically skipped.
    f99867d4c100bcfa346c265a47bce74064afc8f9
    chipx86
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-4.x (d1945f6)