ci/collect-repo-info: No hard dependency on git, take two

Collecting information about builtin external plugins also
tried to use `git` unconditionally.
This commit is contained in:
Arne Welzel 2023-02-23 14:21:20 +01:00
parent 6bf1091a03
commit cc6e012f36

View file

@ -129,7 +129,7 @@ def collect_plugin_info(plugin_dir: pathlib.Path):
except FileNotFoundError:
logger.warning("No VERSION found in %s", plugin_dir)
if git_is_repo(plugin_dir):
if git_available() and git_is_repo(plugin_dir):
result.update(git_generic_info(plugin_dir))
return result