jenkinsci / jenkinsci/git-plugin

[JENKINS-55876] Recursive submodule URLs are not synchronized when changed on a checkout

Open
#3,387 5 comments 0 reactions 0 assignees View on GitHub
component:git-client-plugin component:git-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

If a submodule itself has submodules, and the URL of those submodules changes, then the second submodule's URL will not be updated.

This can cause checkout to fail, because the referenced commit may well not exist in the old submodule. This causes build failures, and either the workspace must be cleaned, or manual intervention must take place.

---
Originally reported by richardwhiuk, imported from: Recursive submodule URLs are not synchronized when changed on a checkout


  • assignee: richardwhiuk
  • status: In Progress
  • priority: Minor
  • component(s): git-client-plugin, git-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 2
  • imported: 2025-12-02

Raw content of original issue

If a submodule itself has submodules, and the URL of those submodules changes, then the second submodule's URL will not be updated.

This can cause checkout to fail, because the referenced commit may well not exist in the old submodule. This causes build failures, and either the workspace must be cleaned, or manual intervention must take place.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.