-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.46.2
Git Client 2.4.5
Git Plugin 3.3.0
If a submodule is defined in .gitmodules but doesn't actually exist in the repo, the Git Plugin fails to checkout the repo:
hudson.plugins.git.GitException: Command "git config --get submodule.callme2.url" returned status code 1:
The checkout only succeeds after the following is removed from .gitmodules:
[submodule "callme2"]
path = callme2
url = ../callme_2
This is a minor bug, since the reference to "callme2" could be removed from .gitmodules since it was not actually being used. However, it seems like the Git Plugin should not have to depend on the .gitmodules file being 100% accurate in order to function correctly.
This was not an issue with the previous version of Git Client Plugin or Git Plugin
- duplicates
-
JENKINS-38860 Git plugin using local config to update submodules
- Closed
- is duplicated by
-
JENKINS-45243 Git Submodule checkout
- Closed
-
JENKINS-44802 check in of a bad .gitmodules files causes the job to fail until manual intervention
- Closed
- is related to
-
JENKINS-45243 Git Submodule checkout
- Closed