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

Use array syntax for execa git clone command #545

Merged
merged 1 commit into from
Jun 4, 2024
Merged

Conversation

ProchaLu
Copy link
Member

@ProchaLu ProchaLu commented Jun 4, 2024

When running Preflight with GitHub Actions on a specific branch, the test throws an error:

ExecaError: Command failed with exit code 129: git clone --depth 1 '--branch renovate/octokit-monorepo' --single-branch 'https://github.com/upleveled/next-portfolio-dev' project-to-check --config 'core.autocrlf=input'

To fix this error, the git clone command was changed to use an array syntax for the branch argument instead of a string template literal. As documented in the execa docs

Copy link

codesandbox-ci bot commented Jun 4, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link

github-actions bot commented Jun 4, 2024

size-limit report 📦

Path Size
dist/preflight.esm.js 6.29 KB (0%)

@ProchaLu ProchaLu changed the title Fix execa git clone command to use an array as branch argument Use branch arg array for execa git clone command Jun 4, 2024
@ProchaLu ProchaLu changed the title Use branch arg array for execa git clone command Use array syntax for execa commands Jun 4, 2024
@ProchaLu ProchaLu changed the title Use array syntax for execa commands Use array syntax for execa git clone command Jun 4, 2024
@ProchaLu ProchaLu merged commit 783bc3f into main Jun 4, 2024
8 checks passed
@ProchaLu ProchaLu deleted the update-clone-command branch June 4, 2024 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants