GitLab CI 构建失败并出现错误,某些本地引用无法更新

GitLab CI build fails with error some local refs could not be updated

我已经使用以下命令重命名了多个远程分支:

git push <remote> <remote>/<old_name>:refs/heads/<new_name> :<old_name>

现在 GitLab CI 构建失败并显示以下错误消息:

gitlab-ci-multi-runner 1.0.4 (014aa8c)
Using Docker executor with image node:4.4.5 ...
Pulling docker image node:4.4.5 ...

Running on runner-705e3a48-project-15-concurrent-0 via d929b1291ac5...
Fetching changes...
HEAD is now at d4a38a6 DEV-3609 merging from as-37
error: cannot lock ref 'refs/remotes/origin/DEV-3425/feature(my-feature)tma': 'refs/remotes/origin/DEV-3425' exists; cannot create 'refs/remotes/origin/DEV-3425/feature(my-feature)tma'
From https://gitlab.myhost.com/my-company/my-project
 ! [new branch]      DEV-3425/feature(my-feature)tma -> origin/DEV-3425/feature(my-feature)tma  (unable to update local ref)
   5be484d..91bab37  v1.0(my-release-branch) -> origin/v1.0(my-release-branch)
error: some local refs could not be updated; try running
 'git remote prune origin' to remove any old, conflicting branches

ERROR: Build failed with: exit code 1

我已经运行命令git remote prune origin但没有用。

我该怎么做才能解决这个问题?

In the GitLab's project settings, try to set "git clone" instead of "git fetch".

我认为 应该是公认的答案!