Skip to content

Conversation

@ladipro
Copy link
Member

@ladipro ladipro commented Oct 12, 2021

Context

The check is failing for loc PRs where SYSTEM_PULLREQUEST_TARGETBRANCH is set to refs/head/main because origin/refs/head/main is not a valid revision spec.

Changes Made

Made the script add the origin remote reference only if the branch is not local.

Testing

Tested by this PR and by #6929 after this PR is merged.

@ladipro ladipro merged commit b7c88a3 into dotnet:main Oct 12, 2021
ladipro added a commit that referenced this pull request Oct 12, 2021
### Context

#6939 had a typo and didn't solve the problem with loc PRs.

### Changes Made

Fixed the revision spec prefix to `refs/heads` instead of `refs/head`.

### Testing

This PR and #6929 after this PR is merged.
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