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

Support unconventional branch names #637

Conversation

klippx
Copy link

@klippx klippx commented Apr 17, 2023

Problem

Renovate github action creates PRs with branch names containing parentheses.

When this action runs on such a branch, this happens:

Setting Git user information
Adding auth information to Git remote URL
Fetching remote branch "renovate/devdependencies-(non-major)"
/bin/sh: 1: Syntax error: "(" unexpected
Error: Command failed: git fetch --no-tags --depth=1 origin renovate/devdependencies-(non-major)
/bin/sh: 1: Syntax error: "(" unexpected

Solution

Escape the string containing branch name so they can be checked out.

@klippx klippx force-pushed the support-unconventional-branch-names branch from 156a37c to 815dfc6 Compare November 7, 2023 14:34
@klippx klippx closed this Jan 10, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants