Git Submodule Update Node
The Git Submodule Update node updates submodules to their configured commit.

Description
The Git Submodule Update node updates one or all submodules in the repository to the commit specified in the parent repository. This fetches and checks out the correct commit for each submodule.
Execution Inputs
- In (execution): Triggers updating the submodules
Variable Inputs
- RepoPath (string): Path to the parent Git repository
- SubmodulePath (string, optional): Path to a specific submodule to update. If empty, updates all submodules
- InitIfNeeded (boolean, optional): Whether to initialize submodules if they haven't been initialized (default: false)
- Recursive (boolean, optional): Whether to recursively update nested submodules (default: false)
Execution Outputs
- Out (execution): Execution continues here after updating completes
Variable Outputs
- Success (boolean): "true" if the update succeeded, "false" otherwise
- UpdatedCount (integer): Number of submodules successfully updated
Special Notes
- SubmodulePath is relative to the repository root
- If SubmodulePath is empty, all submodules are updated
- InitIfNeeded will initialize submodules before updating if they haven't been initialized
- Recursive updates nested submodules within submodules
- UpdatedCount indicates how many submodules were updated
- RepoPath must point to a valid Git repository
Example Usage
Update all submodules:
- Set RepoPath to the parent repository path
- Leave SubmodulePath empty
- Set InitIfNeeded to true if needed
- Set Recursive to true for nested submodules
- Connect In to update
- Check Success and UpdatedCount outputs
Update a specific submodule:
- Set RepoPath to the parent repository path
- Set SubmodulePath to "vendor/submodule"
- Connect In to update
- Check Success output
Flow Download Example
Placeholder for flow download example
Additional Pictures
Placeholder for additional node images and examples