-
Notifications
You must be signed in to change notification settings - Fork 184
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
Check remote refs instead of local refs when applying/pushing changes #1645
Conversation
The following pipelines have been queued for testing: |
Template pipeline: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=922280&view=logs&j=3209e245-f6ba-5d50-799f-1562c2eae04f&t=37ce2dc7-5e9f-573b-8bc7-a6f98ce6968f Right now that pipeline exercises the script against a full checkout, since the java repo reverted the sparse checkout. Testing for the latter scenario will gate Azure/azure-sdk-for-java#21912. |
The following pipelines have been queued for testing: |
Hello @azure-sdk! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
With recent changes to use sparse checkout in our release steps, the assumption that all remote refs will be downloaded to the local git state no longer holds. This updates our git branch push script to check for pre-existing branches via
git ls-remote
instead, and additionally constrains thegit fetch
command to only fetch relevant refs.