Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renovate can't push git refs if tags match branch names #12734

Closed
rarkins opened this issue Nov 18, 2021 · 1 comment
Closed

Renovate can't push git refs if tags match branch names #12734

rarkins opened this issue Nov 18, 2021 · 1 comment
Labels
priority-4-low Low priority, unlikely to be done unless it becomes important to more people status:requirements Full requirements are not yet known, so implementation should not be started type:bug Bug fix of existing functionality

Comments

@rarkins
Copy link
Collaborator

rarkins commented Nov 18, 2021

How are you running Renovate?

WhiteSource Renovate hosted app on github.com

If you're self-hosting Renovate, tell us what version of Renovate you run.

No response

Please select which platform you are using if self-hosting.

No response

If you're self-hosting Renovate, tell us what version of the platform you run.

No response

Describe the bug

If a repo uses Renovate branch names as tags, Renovate's git push fails.

Related Stack Overflow: https://stackoverflow.com/questions/9378760/git-push-local-branch-with-same-name-as-remote-tag

Relevant debug logs

Logs
{
  "hostname": "ip-172-31-3-139",
  "level": 40,
  "logContext": 509891797,
  "repository": "donmahallem/js-libs",
  "branch": "renovate/typescript-4.x",
  "err": {
    "task": {
      "commands": [
        "push",
        "origin",
        "renovate/typescript-4.x:renovate/typescript-4.x",
        "--force-with-lease",
        "-u",
        "--no-verify",
        "--verbose",
        "--porcelain"
      ],
      "format": "utf-8"
    },
    "message": "Pushing to https://github.com/donmahallem/js-libs.git\nerror: src refspec refs/heads/renovate/typescript-4.x matches more than one\nfatal: the remote end hung up unexpectedly\nerror: failed to push some refs to 'https://github.com/donmahallem/js-libs.git'\n",
    "stack": "Error: Pushing to https://github.com/donmahallem/js-libs.git\nerror: src refspec refs/heads/renovate/typescript-4.x matches more than one\nfatal: the remote end hung up unexpectedly\nerror: failed to push some refs to 'https://github.com/donmahallem/js-libs.git'\n\n at Object.action (/home/ubuntu/renovateapp/node_modules/simple-git/src/lib/plugins/error-detection.plugin.js:30:33)\n at PluginStore.exec (/home/ubuntu/renovateapp/node_modules/simple-git/src/lib/plugins/plugin-store.js:21:33)\n at /home/ubuntu/renovateapp/node_modules/simple-git/src/lib/runners/git-executor-chain.js:95:45\n at new Promise (<anonymous>)\n at GitExecutorChain.handleTaskData (/home/ubuntu/renovateapp/node_modules/simple-git/src/lib/runners/git-executor-chain.js:93:16)\n at GitExecutorChain.<anonymous> (/home/ubuntu/renovateapp/node_modules/simple-git/src/lib/runners/git-executor-chain.js:77:46)\n at Generator.next (<anonymous>)\n at fulfilled (/home/ubuntu/renovateapp/node_modules/simple-git/src/lib/runners/git-executor-chain.js:5:58)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (internal/process/task_queues.js:95:5)"
  },
  "msg": "Error updating branch",
  "time": "2021-11-18T08:39:45.861Z"
}

Have you created a minimal reproduction repository?

No reproduction, but I have linked to a public repo where it occurs

@rarkins rarkins added type:bug Bug fix of existing functionality status:requirements Full requirements are not yet known, so implementation should not be started priority-5-triage labels Nov 18, 2021
@HonkingGoose HonkingGoose added priority-4-low Low priority, unlikely to be done unless it becomes important to more people and removed priority-5-triage labels Nov 18, 2021
@renovate-release
Copy link
Collaborator

🎉 This issue has been resolved in version 29.12.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority-4-low Low priority, unlikely to be done unless it becomes important to more people status:requirements Full requirements are not yet known, so implementation should not be started type:bug Bug fix of existing functionality
Projects
None yet
Development

No branches or pull requests

3 participants