Failing to Pull a Submodule and Obtain Its Revision Version By Git
Symptoms
The following error is displayed:
1 2 3 4 5 6 7 8 9 |
[2019-07-02 08:29:23.179] ERROR: Command "git submodule update --init --recursive --remote asae-feign" returned status code 1:
[2019-07-02 08:29:23.179] stdout: Cloning into 'asae-feign'...
[2019-07-02 08:29:23.179]
[2019-07-02 08:29:23.179] Error: ERROR: Needed a single revision
[2019-07-02 08:29:23.179] Unable to find current origin/develop revision in submodule path 'asae-feign'
[2019-07-02 08:29:23.179]
[2019-07-02 08:29:23.202] [INTERNAL] : [pluginFrame] step run failed, errorMessage: Could not perform submodule update
[2019-07-02 08:29:23.250] [INFO] [Code checkout]: StagePostExecution started
[2019-07-02 08:29:23.251] [INFO] [Code checkout]: StagePostExecution finished
|
Cause Analysis
The original directory is incorrect. In this example, the directory is asae-feign. This is a Git bug.
Solution
Delete the directory from the code repository, run the git submodule update command again, 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.