spring-cloud / spring-cloud/spring-cloud-config
Update Git Submodules On Refresh
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2k
- Forks
- 1.3k
- Avg merge
- 2d 59m
- Merged PRs (30d)
- 16
Description
When using a Git repo as a backend and that Git repo contains a submodule you can clone the submodules but they are never refreshed.
See https://github.com/spring-cloud/spring-cloud-config/issues/1917#issuecomment-873216819
I think we can use SubmoduleWalk to walk the submodules and update them
https://download.eclipse.org/jgit/site/5.12.0.202106070339-r/apidocs/index.html
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the Git backend's refresh path and read the linked JGit SubmoduleWalk API documentation to understand how submodules can be traversed and updated. Verify that refreshing a repository also refreshes its existing submodules, while preserving the current clone behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100