Add dependency checks for Git.
Review Request #12548 — Created Aug. 18, 2022 and submitted — Latest diff uploaded
GitClientto add formal support for dependency checks.
GitClient.check_dependencies()now determines if
(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
has_dependencies(). The same is done
GitClient.gitproperty, which used to be an attribute.
Unit tests have been updated to include new dependency-related tests. If
gittool isn't installed, tests that depend on it will be
Unit tests pass on Python 3.7-3.11.