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
|
@ -142,7 +142,7 @@ def doctor(cli):
|
|||
if sub_ok == CheckStatus.OK:
|
||||
cli.log.info('Submodules are up to date.')
|
||||
else:
|
||||
if yesno('Would you like to clone the submodules?', default=True):
|
||||
if git_check_repo() and yesno('Would you like to clone the submodules?', default=True):
|
||||
submodules.update()
|
||||
sub_ok = check_submodules()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue