error: cannot lock ref but expected

The following error was reported during the execution of the pipeline.

gitlab version:13.8.3

runner version:13.8.0

Preparing the "shell" executor
00:00
Using Shell executor...
Preparing environment
00:00
Running on xxx.net...
Getting source from Git repository
00:01
Fetching changes...
Reinitialized existing Git repository in /home/gitlab-runner/builds/G-tus7wz/0/xxx/xxx/.git/
error: cannot lock ref 'refs/remotes/origin/trunk': is at 403fb1eef2dac3f16483c4254f3e2cc226f7f3a3 but expected fee21c3a4357d2748a0cd56d285d5d5edcd2e793
Cleaning up file based variables
00:00
ERROR: Job failed: exit status 1
Edited by helloqhq