1
0
Fork 0

Report submodule status when not valid work-tree (#19474)

This commit is contained in:
Joel Challis 2023-01-02 22:00:29 +00:00 committed by GitHub
parent 0f5500182c
commit 3a5a4c708f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 17 deletions

View file

@ -119,10 +119,8 @@ def check_submodules():
"""
for submodule in submodules.status().values():
if submodule['status'] is None:
cli.log.error('Submodule %s has not yet been cloned!', submodule['name'])
return CheckStatus.ERROR
elif not submodule['status']:
cli.log.warning('Submodule %s is not up to date!', submodule['name'])
return CheckStatus.WARNING
return CheckStatus.OK