kubernetes / kubernetes/git-sync
Add Git submodules remote tracking
- Dominant language
- Shell
- Stars
- 2.7k
- Forks
- 469
- PR merge metrics
- No merged PRs in 30d
Description
Add Git submodules remote tracking
* Always update the registered submodules using the remote-tracking branch
instead of the superproject's recorded SHA-1.
Only apply to the submodules' name that listed in the
`--submodules-remote-tracking` parameter, otherwise default behavior will be applied.
- Use case:
Update the latest registered configurations submodule from remote repository
- git-sync parameter:
./git-sync ... --submodules-remote-tracking="deployment-configs,app-configs"
Contributor guide
Research direction
Start by locating the command-line option parsing and the existing submodule update path in git-sync. Implement the requested remote-tracking behavior only for submodules named by the parameter, while preserving recorded-SHA behavior for all others; verify both paths against a remote repository with multiple submodules.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, shell
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100