Error checking out different submodule commits
pespinel opened this issue · comments
Pablo Espinel Caballero commented
Misc
One workflow runs on master, the submodule points to a commit. Then the same workflow runs on another branch, the submodule points to another different commit.
We are having the following error:
Checking out the ref
/usr/bin/git checkout --progress --force -B master refs/remotes/origin/master
Error: fatal: failed to unpack tree object c40ead345284397b4c099ecc5b5ec9586bc9d326
Error: error: Submodule 'acceptance/resources/users_data' could not be updated.
Error: error: Submodule 'acceptance/resources/users_data' cannot checkout new HEAD.
Error: The process '/usr/bin/git' failed with exit code 128
Step:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'