Report submodule status when not valid work-tree (#19474)
This commit is contained in:
parent
0f5500182c
commit
3a5a4c708f
3 changed files with 11 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue