Jump to: Why Submodules | Setup | Updating | Read-Only Submodules | Troubleshooting
Why Use Submodules
- Unified context - Blitzy sees all your repositories as one codebase
- Modular architecture - Keep separate repos while enabling coordinated changes
- Cross-repo awareness - Blitzy understands dependencies and relationships across your system
Setup
Grant Blitzy access
Grant Blitzy access to the parent repository and every repository in your
.gitmodules file through your source control integration settings.Add submodules
Verify .gitmodules
Confirm entries use absolute HTTPS URLs with branch tracking:
Azure DevOps uses
https://dev.azure.com/your-org/your-project/_git/shared-libKeeping Submodules Updated
The parent repo does not automatically track new submodule commits. To pick up upstream changes:Read-Only Submodules
Some submodules point to repos the user can read but not write to - shared libraries, vendor SDKs, archived repos. Blitzy ingests and indexes these for context but cannot push code changes to them.- Ingestion - read-only submodules are indexed like any other, giving agents full cross-repo context
- Setup - same
git submodule addflow; your integration needs at least read access to the submodule repo - Writable submodules - when Blitzy has write access, it pushes branches and opens PRs against the submodule directly
- Pinned commits - the parent pins each submodule to a specific commit. Pull latest and commit the updated pointer (see Keeping Submodules Updated)
Troubleshooting
Submodule folders appear empty / Blitzy cannot diff
Submodule folders appear empty / Blitzy cannot diff
Check initialization status locally:A
- prefix (e.g., -abc1234 shared-lib) means the submodule is uninitialized. Run the init, commit, and push sequence from Setup step 4.If submodules are initialized locally but Blitzy can’t see them, verify Blitzy has access to every repo in .gitmodules - not just the parent.Blitzy can't access or modify a read-only submodule
Blitzy can't access or modify a read-only submodule
Access issues: Verify your integration grants Blitzy read access to the submodule repo - not just the parent. Confirm the If the submodule is in a different organization, fork it into your org and point the URL at the fork.Push errors: Blitzy agents cannot push to repos without write access. Do not request code changes to read-only or archived submodules. Modify the upstream repo separately, then update the pointer in the parent (see Keeping Submodules Updated).
.gitmodules URL uses HTTPS, not SSH:Is submodule setup complex?
Is submodule setup complex?
Add the submodule, init, commit, push, and re-sync. No special configuration needed beyond repo access.
Related Guides
Managing Integrations
View, share, and troubleshoot integrations
Project Setup
Set up projects with multi-repository architectures