Help Center/ CodeArts Build/ FAQs/ Fetching Code/ Failing to Pull Code of a Submodule
Updated on 2023-11-28 GMT+08:00

Failing 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. Click the synchronization icon to synchronize the deployment 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.