git_submodule
Manage submodules: show status, add a new one, or update all to sync external repositories.
Instructions
Manage submodules: show status, add a new one, or update all of them. Use this when a repository embeds external repositories, to check whether embedded repos are in sync, or to add a new dependency as a submodule. Best for: embedding and syncing external repositories. Returns: submodule status output, or git submodule output; 'No submodules found.' when none are configured. add needs both url and path; update fetches and inits all submodules. Does NOT clone the superproject — use git_clone for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Submodule repository URL | |
| path | No | Submodule path | |
| operation | No | One of: status, add, update | status |
| repo_path | No | Path to the git repository, defaults to '.' (the server working directory) | . |