checkout icon indicating copy to clipboard operation
checkout copied to clipboard

Error checking out different submodule commits

Open pespinel opened this issue 1 year ago • 0 comments

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'

pespinel avatar May 06 '24 11:05 pespinel