- Shallow-fetch the resolved SHA instead of --branch
- Keep submodules shallow (and initialized) in depth mode
- Fetch submodules at full depth; wrap git init in retry_block