mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix cornercase tracebaxk when detecting whether submodules changed
This commit is contained in:
parent
b2829cf6b9
commit
b00e6464e9
1 changed files with 2 additions and 1 deletions
|
@ -688,6 +688,7 @@ def main():
|
||||||
switch_version(git_path, module, dest, remote, version, recursive, track_submodules)
|
switch_version(git_path, module, dest, remote, version, recursive, track_submodules)
|
||||||
|
|
||||||
# Deal with submodules
|
# Deal with submodules
|
||||||
|
submodules_updated = False
|
||||||
if recursive and not bare:
|
if recursive and not bare:
|
||||||
submodules_updated = submodules_fetch(git_path, module, remote, track_submodules, dest)
|
submodules_updated = submodules_fetch(git_path, module, remote, track_submodules, dest)
|
||||||
|
|
||||||
|
@ -707,7 +708,7 @@ def main():
|
||||||
changed = False
|
changed = False
|
||||||
if before != after or local_mods:
|
if before != after or local_mods:
|
||||||
changed = True
|
changed = True
|
||||||
elif recursive and submodules_updated:
|
elif submodules_updated:
|
||||||
changed =True
|
changed =True
|
||||||
|
|
||||||
# cleanup the wrapper script
|
# cleanup the wrapper script
|
||||||
|
|
Loading…
Reference in a new issue