To solve this problem, update your build script to run this command before
pushing to Enclave:

git fetch --unshallow ||true

If your CI platform uses an old version of git, –unshallow may not be
available. In that case, you can try fetching a number of commits large enough
to fetch all commits through to the repository root, thus unshallowing your
repository: