Hi fellas, from some weeks ago I'm receiving this error in my pipelines
The commit could not be found in the cloned repository. This can be caused by using force push, or not having a deep enough clone.
Puntually, the error it's produced in the build setup of the pipeline on a git reset instruction:
<span>+ GIT_LFS_SKIP_SMUDGE=1 retry 6 git clone --branch="develop" <a href="https://x-token-auth:%24REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/%24BITBUCKET_REPO_FULL_NAME.git" rel="noopener nofollow noreferrer" target="_blank">https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME.git</a> $BUILD_DIR</span><span>Cloning into '/opt/atlassian/pipelines/agent/build'...</span><span>Updating files: 95% (6074/6335)</span><span>Updating files: 96% (6082/6335)</span><span>Updating files: 97% (6145/6335)</span><span>Updating files: 98% (6209/6335)</span><span>Updating files: 99% (6272/6335)</span><span>Updating files: 100% (6335/6335)</span><span>Updating files: 100% (6335/6335), done.</span><span>+ git reset --hard 4e5d27fc840e01987b652ea0647b19468969e742</span><span>fatal: Could not parse object '4e5d27fc840e01987b652ea0647b19468969e742'.</span>
This is intermittent as it fails randomly on any branch. Also after a fail If I click rerun after some minutes it succeeds. The pipeline in question has clone depth full.