Skip to content

Conversation

@louis-bompart
Copy link

Description

Fixes #9320 ;

When checking out a repo in GitHub Actions using actions/checkout (even with fetch-depth: 0), we often do not have local branches set (for pull_request, it's likely we don't have any local branches at all).
git rev-parse does not "fallback" naturally to a remote branch when used on a local reference.

This causes the issue described in #9320, which essentially prevents GitHub Actions users from leveraging --affected "out-of-the-box" and using TURBO_SCM_BASE, which, in my opinion, is sub-optimal.

To fix that, this PR implement a "fallback" on origin/local_branch_name

Testing Instructions

@vercel
Copy link
Contributor

vercel bot commented Aug 5, 2025

@louis-bompart is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Contributor

vercel bot commented Aug 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
examples-basic-web Ready Ready Preview Comment Sep 30, 2025 7:56pm
examples-designsystem-docs Ready Ready Preview Comment Sep 30, 2025 7:56pm
examples-tailwind-web Ready Ready Preview Comment Sep 30, 2025 7:56pm
examples-vite-web Ready Ready Preview Comment Sep 30, 2025 7:56pm

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.

--affected failing to resolve main even on full checkout

2 participants