spring-cloud / spring-cloud/spring-cloud-config

Update Git Submodules On Refresh

Open
#1,924 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.