Help Center/ CodeArts Build/ FAQs/ General/ How Do I Resolve the Error Occurred When Pulling the Sub-module During My Build?
Updated on 2024-10-10 GMT+08:00

How Do I Resolve the Error Occurred When Pulling the Sub-module During My Build?

Symptoms

The following error message is displayed during a build process.

Cause Analysis

If you get the Could not read from remote repository error when using Git to pull the sub-module from CodeArts Repo, it could be due to either insufficient permissions or incorrect configuration of the .gitmodules file.

Solution

  1. Check if the deploy key is synchronized. Go to the main code repository and choose Settings > Submodules. If the deploy key is not synchronized, click the synchronization button to synchronize the deploy key and then run the build task again.
  1. If the deploy key has been synchronized in Step 1, the problem may be with the .gitmodules file in the main repository, specifically with the submodule mavenSubTest19114. Check if the .gitmodules file exists and if it is configured correctly.

  2. Change the submodule configuration in the .gitmodules file to mavenSubTest19114a.git.

  3. Rerun the build task.