Failed to Pull Code of a Submodule
Symptoms
When a build task is executed, the following error information is displayed.

Cause Analysis
If the error Could not read from remote repository is displayed when Git pulls sub-modules from CodeArts Repo, the possible cause is that the user does not have the required permissions or the .gitmodules file is incorrectly configured.
Solution
- Open the main code repository and choose . The deploy key is not synchronized. Click the synchronization icon to synchronize the deploy key. Then, run the build task again.
- If the deployment key has been synchronized in Step 1, the .gitmodules file in the main code repository may be incorrectly configured. Check whether the .gitmodules file exists and the submodule is mavenSubTest19114.

- Open the .gitmodules file and modify the submodule configuration to mavenSubTest19114a.git.

- Modify the .gitmodules file and run the build task again.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot