我使用以下命令重命名了多个远程分支:
----
my_key: my_value
my_key2: my_value2
----
{% assign key = 'my_key' %}
{{ page.{{ key }} }}
现在,GitLab CI构建失败,并显示以下错误消息:
git push <remote> <remote>/<old_name>:refs/heads/<new_name> :<old_name>
我已经运行了命令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
,但它没有帮助。
我该怎么做才能解决问题?