Help Center/ CodeArts Build/ User Guide (Ally Region)/ FAQs/ Fetching Code/ Failed to Pull Code of a Submodule
Updated on 2026-01-08 GMT+08:00

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

  1. Open the main code repository and choose Settings > Submodules. The deploy key is not synchronized. Click the synchronization icon to synchronize the deploy key. Then, run the build task again.
  1. 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.

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

  3. Modify the .gitmodules file and run the build task again.