Issue Type
Summary
We have a git repository with several submodules. One of the submodule has a logical name that is different from its path, i.e. it was added with the --name option, so the resulting .gitmodule looks something like this:
[submodule "SharedRepo"]
path = ios-common
url = <the git url>
Note that the logical name "SharedRepo" differs from the path "ios-common".
When GoCD tries to update materials, it fails with the following logs:
pr|15:48:23.993 [GIT] Updating git sub-modules
pr|15:48:49.459 [GIT] Cleaning unversioned files and sub-modules
pr|15:48:49.460 [GIT] Git sub-module status
pr|15:48:49.587 6a92a728d8a8466aacdfdfbb3660b1c132d89e56 ios-build (6a92a72)
pr|15:48:49.668 80d52a724db33739024564b93d3a854749e327e5 ios-common (RELEASE_3_9_0)
pr|15:48:49.771 [GIT] Cleaning all unversioned files in working copy
&2|15:48:49.891 Working directory "/Users/dyang/Library/Application Support/Go Agent/pipelines/testpipeline/SharedRepo" does not exist!
Basic environment details
- Go Version: 17.7.0 (5147-53fdb1b15184f93966059a42429bf9ed0bfdee59)
- JAVA Version: 1.8.0_91
- OS: Mac OS X 10.12.5
Steps to Reproduce
- Create a dummy git repo to use as material
- Add a submodule to this repo by running
git submodule add --name <some_name> <git_repo>
- Commit the submodule addition to the dummy git repo
- In GoCD, set up a pipeline that uses the dummy git repo
- Trigger the pipeline
Expected Results
GoCD should be able to update to the correct git and submodule commits.
Actual Results
GoCD fails at fetching material with an error message 'Working directory ..../<pipeline_name>/<logical_name> does not exist!'
Issue Type
Summary
We have a git repository with several submodules. One of the submodule has a logical name that is different from its path, i.e. it was added with the --name option, so the resulting .gitmodule looks something like this:
Note that the logical name "SharedRepo" differs from the path "ios-common".
When GoCD tries to update materials, it fails with the following logs:
Basic environment details
Steps to Reproduce
git submodule add --name <some_name> <git_repo>Expected Results
GoCD should be able to update to the correct git and submodule commits.
Actual Results
GoCD fails at fetching material with an error message 'Working directory ..../<pipeline_name>/<logical_name> does not exist!'